Mercurial > hg > savane-forge
changeset 24:f5794b00991e
Add the request context_preprocessor to the list. Removed the I18N support
author | Jonathan Gonzalez V <zeus@lunareja.(none)> |
---|---|
date | Fri, 22 May 2009 21:42:16 -0400 |
parents | 7d047faae20f |
children | cef1b24323c7 |
files | savane/settings.py template/base.djhtml |
diffstat | 2 files changed, 14 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/savane/settings.py +++ b/savane/settings.py @@ -33,7 +33,7 @@ # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. -USE_I18N = True +USE_I18N = False # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" @@ -59,6 +59,14 @@ # 'django.template.loaders.eggs.load_template_source', ) +TEMPLATE_CONTEXT_PROCESSORS = ( + 'django.core.context_processors.auth', + 'django.core.context_processors.debug', + 'django.core.context_processors.i18n', + 'django.core.context_processors.media', + 'django.core.context_processors.request', +) + MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
--- a/template/base.djhtml +++ b/template/base.djhtml @@ -14,7 +14,6 @@ </head> <body> - <div class="main_menu"> <a href="/"><img src="{{MEDIA_URL}}/images/Savannah.theme/floating.png" alt="Back to Savannah Homepage" border="0" width="118" height="100" /></a> <a href="">Hosted Projects</a> @@ -37,13 +36,12 @@ </form> </div> </div> - - {% if authenticated %} + {% if user.is_authenticated %} <div class="fast_menu_user"> - <a href="">My Items</a> - <a href="">My Groups</a> - <a href="">Account Conf</a> - <a href="user/logout">Logout</a> + <a href="">Items</a> + <a href="">Groups</a> + <a href="/user/conf">Account Conf</a> + <a href="/user/logout">Logout</a> </div> {% else %} <div class="menu_login">