Trabalhando com URLs dinâmicas em urls.py e nos templates HTML do Django
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% include 'global/partials/head.html' %}
|
||||
{% include 'global/partials/menu.html' %}
|
||||
|
||||
<h1>{% block texto %}{% endblock texto %}</h1>
|
||||
|
||||
|
||||
13
aula207_ola_django/base/global/partials/menu.html
Normal file
13
aula207_ola_django/base/global/partials/menu.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{% url 'home:home' %}">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'blog:home' %}">Blog</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'blog:exemplo' %}">Exemplo</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user