Tutorial
TutorialBack 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 | ) | ||
| 98 | 98 | ||||
| 99 | # Adding MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_P | 99 | # Adding MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_P | ||
| > | ROCESSORS | > | ROCESSORS | ||
| 100 | 100 | ||||
| n | 101 | SCT (currently) needs at least two middleware clas | n | 101 | SCT (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: | ||
| 102 | 102 | ||||
| 103 | MIDDLEWARE_CLASSES = ( | 103 | MIDDLEWARE_CLASSES = ( | ||
| 104 | 'sphene.community.middleware.ThreadLocals' | 104 | 'sphene.community.middleware.ThreadLocals' | ||
| > | , | > | , | ||
| 105 | 'sphene.community.middleware.GroupMiddlewa | 105 | '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', | ||
| t | t | 118 | 'django.core.context_processors.media', | ||
| 118 | 'sphene.community.context_processors.navig | 119 | 'sphene.community.context_processors.navig | ||
| > | ation', | > | ation', | ||
| 119 | ) | 120 | ) | ||
| 120 | 121 | ||||
| 121 | # Adding Template Directories | 122 | # Adding Template Directories | ||
| 122 | 123 | ||||
Powered by Sphene Community Tools
