Skip to content

Commit

Permalink
Ch15: Add flatpages to navigation menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
jambonrose committed Jul 30, 2015
1 parent 95d9c3e commit 4b8bef1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/base.html
@@ -1,3 +1,5 @@
{% load flatpages %}
{% get_flatpages as flatpages %}
<!DOCTYPE html>
<html lang="en">

Expand Down Expand Up @@ -35,6 +37,11 @@ <h1>Startup Organizer</h1>
<li>
<a href="{% url 'contact' %}">
Contact</a></li>
{% for page in flatpages %}
<li>
<a href="{{ page.get_absolute_url }}">
{{ page.title }}</a></li>
{% endfor %}
</ul>
</nav>
{% if messages %}
Expand Down

0 comments on commit 4b8bef1

Please sign in to comment.