base.html instead of base.py as it is a Jinja template
parent
86aedf7ec5
commit
0719095648
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ Jinja is integrated within Flask. One of the great features of Jinja is the inhe
|
|||
</html>
|
||||
```
|
||||
|
||||
Now we won't have to redefine our html structure anymore, and any modification done on `base.py` will be visible on all your child templates. Here is the `/app/templates/users/register.html` template (It's a good habit to use the view name for the template file name).
|
||||
Now we won't have to redefine our html structure anymore, and any modification done on `base.html` will be visible on all your child templates. Here is the `/app/templates/users/register.html` template (It's a good habit to use the view name for the template file name).
|
||||
|
||||
```jinja
|
||||
{% extends "base.html" %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue