Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools

Tutorial

Tutorial

Back to Snip <-- Previous Change | Next Change -->

Diff Summary
Title
Date 2008-02-17 00:12:49 2008-02-17 00:28:06
Editor Herbert Poul Herbert Poul
Tags

2008-02-17 00:12:49 by Herbert Poul
2008-02-17 00:28:06 by Herbert Poul
96        'sphene.sphwiki',96        'sphene.sphwiki',
97    )97    )
9898
99# Adding MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_P99# Adding MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_P
>ROCESSORS>ROCESSORS
100100
n101SCT (currently) needs at least two middleware clasn101SCT (currently) needs at least two middleware clas
>ses and one template context processor .. All in a>ses and two template context processor .. All in a
>ll the two settings should look like the following>ll the two settings should look like the following
> in your settings.py:> in your settings.py:
102102
103    MIDDLEWARE_CLASSES = (103    MIDDLEWARE_CLASSES = (
104        'sphene.community.middleware.ThreadLocals'104        'sphene.community.middleware.ThreadLocals'
>,>,
105        'sphene.community.middleware.GroupMiddlewa105        'sphene.community.middleware.GroupMiddlewa
>re',>re',
106    106    
113    TEMPLATE_CONTEXT_PROCESSORS = (113    TEMPLATE_CONTEXT_PROCESSORS = (
114        'django.core.context_processors.auth',114        'django.core.context_processors.auth',
115        'django.core.context_processors.debug',115        'django.core.context_processors.debug',
116        'django.core.context_processors.i18n',116        'django.core.context_processors.i18n',
117        'django.core.context_processors.request',117        'django.core.context_processors.request',
tt118        'django.core.context_processors.media',
118        'sphene.community.context_processors.navig119        'sphene.community.context_processors.navig
>ation',>ation',
119    )120    )
120121
121# Adding Template Directories122# Adding Template Directories
122123


Powered by Sphene Community Tools