Commit b25ec76e authored by Christophe Siraut's avatar Christophe Siraut

settings: add menu_footer

parent 34e5437a
Pipeline #124 canceled with stages
from .models import Page
from django.conf import settings
def menu(request):
menupages = Page.objects.filter(in_menu=True)
return {'menu': menupages }
return {'menu': menupages, 'menu_footer': settings.MENU_FOOTER }
......@@ -51,6 +51,7 @@
{% for page in menu %}
<a href="/{{ page.slug }}/">{{ page }}</a><br />
{% endfor %}
{{ menu_footer|safe }}
</div>
</div>
......
......@@ -13,7 +13,6 @@ https://docs.djangoproject.com/en/1.6/ref/settings/
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
......@@ -121,6 +120,7 @@ LANGUAGES = (
('ca', 'Català'),
)
'''
MENU_FOOTER = ''
try:
from local_settings import *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment