| TEMPLATE_CONTEXT_PROCESSORS += ( | | TEMPLATE_CONTEXT_PROCESSORS += ( |
| # add navigation middleware for SCT | | # add navigation middleware for SCT |
| 'sphene.community.context_processors.navig | | 'sphene.community.context_processors.navig |
| ation', | | ation', |
| ) | | ) |
| | | |
t | | t | ## Modifying urls.py
|
| | |
|
| | | Now you have to wire up the three applications int |
| | | o your urls.py so modify simpleproject/urls.py and |
| | | add the following to the patterns('', ..) list:
|
| | |
|
| | | urlpatterns = patterns('',
|
| | | url(r'^community/', include('sphene.commun |
| | | ity.urls'),
|
| | | url(r'^board/', include('sphene.sphboard.u |
| | | rls'),
|
| | | url(r'^wiki/', include('sphene.sphwiki.url |
| | | s'),
|
| | | )
|
| | | |
| ## Synchronizing tables | | ## Synchronizing tables |
| | | |
| After adding the community projects, run syncdb ag | | After adding the community projects, run syncdb ag |
| ain which will create all necessary tables. (Becau | | ain which will create all necessary tables. (Becau |
| se of south you have to use syncdb --all and migra | | se of south you have to use syncdb --all and migra |
| te --fake for the first time. Whenever you upgrade | | te --fake for the first time. Whenever you upgrade |
| SCT you have to run: ./manage.py migrate). | | SCT you have to run: ./manage.py migrate). |
| | | |