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/New

Tutorial / New

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

Diff Summary
Title
Date 2012-03-17 18:02:23 2012-03-17 18:13:25
Editor Herbert Poul Herbert Poul
Tags

2012-03-17 18:02:23 by Herbert Poul
2012-03-17 18:13:25 by Herbert Poul
8383
84First of all you have to install SCT (the communit84First 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
8585
86I usually prefer to have the GIT version, so i che86I 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.
8787
tt88## Project Configuration
89
90Add the following applications to your INSTALLED_A
 >PPS:
91
92        'sphene.community',
93        'sphene.sphboard',
94        'sphene.sphwiki',
95
96## Adding MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_
 >PROCESSORS
97
98
99SCT (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:
100
101        'sphene.community.middleware.ThreadLocals'
 >,
102        'sphene.community.middleware.GroupMiddlewa
 >re',
103
104To 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:
105
106
107    TEMPLATE_CONTEXT_PROCESSORS = (
108        "django.contrib.auth.context_processors.au
 >th",
109        "django.core.context_processors.debug",
110        "django.core.context_processors.i18n",
111        "django.core.context_processors.media",
112        "django.core.context_processors.static",
113        "django.contrib.messages.context_processor
 >s.messages",
114        'sphene.community.context_processors.navig
 >ation',
115    )


Powered by Sphene Community Tools