| | | |
| First of all you have to install SCT (the communit | | First of all you have to install SCT (the communit |
| ytools project) - you can either download it and r | | ytools project) - you can either download it and r |
| un setup.py or use the GIT version from https://gi | | un setup.py or use the GIT version from https://gi |
| thub.com/hpoul/sct-communitytools | | thub.com/hpoul/sct-communitytools |
| | | |
| I usually prefer to have the GIT version, so i che | | I usually prefer to have the GIT version, so i che |
| cked it out into the same directory and added the | | cked it out into the same directory and added the |
| 'sct-communitytools/sphenecoll' path to the PYTHON | | 'sct-communitytools/sphenecoll' path to the PYTHON |
| _PATH. | | _PATH. |
| | | |
t | | t | ## Project Configuration
|
| | |
|
| | | Add the following applications to your INSTALLED_A |
| | | PPS:
|
| | |
|
| | | 'sphene.community',
|
| | | 'sphene.sphboard',
|
| | | 'sphene.sphwiki',
|
| | |
|
| | | ## Adding MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_ |
| | | PROCESSORS
|
| | |
|
| | |
|
| | | SCT (currently) needs at least two middleware clas |
| | | ses and one template context processor. Add the fo |
| | | llowing to middlewares to the TOP of your MIDDLEWA |
| | | RE_CLASSES:
|
| | |
|
| | | 'sphene.community.middleware.ThreadLocals' |
| | | ,
|
| | | 'sphene.community.middleware.GroupMiddlewa |
| | | re',
|
| | |
|
| | | To add the template context processor you need to |
| | | modify TEMPLATE_CONTEXT_PROCESSOR - this variable |
| | | is by default not set in the generated settings.py |
| | | - so if you don't have it yet in your settings.py |
| | | you have to add it:
|
| | |
|
| | |
|
| | | TEMPLATE_CONTEXT_PROCESSORS = (
|
| | | "django.contrib.auth.context_processors.au |
| | | th",
|
| | | "django.core.context_processors.debug",
|
| | | "django.core.context_processors.i18n",
|
| | | "django.core.context_processors.media",
|
| | | "django.core.context_processors.static",
|
| | | "django.contrib.messages.context_processor |
| | | s.messages",
|
| | | 'sphene.community.context_processors.navig |
| | | ation',
|
| | | )
|