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 2012-06-04 09:56:19 2012-06-04 09:58:55
Editor Herbert Poul Herbert Poul
Tags

2012-06-04 09:56:19 by Herbert Poul
2012-06-04 09:58:55 by Herbert Poul
109    TEMPLATE_CONTEXT_PROCESSORS += (109    TEMPLATE_CONTEXT_PROCESSORS += (
110        # add navigation middleware for SCT110        # add navigation middleware for SCT
111        'sphene.community.context_processors.navig111        'sphene.community.context_processors.navig
>ation',>ation',
112    )112    )
113113
tt114## Modifying urls.py
115
116Now 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:
117
118    urlpatterns = patterns('',
119        url(r'^community/', include('sphene.commun
 >ity.urls'),
120        url(r'^board/', include('sphene.sphboard.u
 >rls'),
121        url(r'^wiki/', include('sphene.sphwiki.url
 >s'),
122    )
114123
115## Synchronizing tables124## Synchronizing tables
116125
117After adding the community projects, run syncdb ag126After 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).
118127


Powered by Sphene Community Tools