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

2012-06-04 09:58:55 by Herbert Poul
2012-06-04 09:59:18 by Herbert Poul
114## Modifying urls.py114## Modifying urls.py
115115
116Now you have to wire up the three applications int116Now you have to wire up the three applications int
>o your urls.py so modify simpleproject/urls.py and>o your urls.py so modify simpleproject/urls.py and
> add the following to the patterns('', ..) list:> add the following to the patterns('', ..) list:
117117
118    urlpatterns = patterns('',118    urlpatterns = patterns('',
t119        url(r'^community/', include('sphene.communt119        url(r'^community/', include('sphene.commun
>ity.urls'),>ity.urls')),
120        url(r'^board/', include('sphene.sphboard.u120        url(r'^board/', include('sphene.sphboard.u
>rls'),>rls')),
121        url(r'^wiki/', include('sphene.sphwiki.url121        url(r'^wiki/', include('sphene.sphwiki.url
>s'),>s')),
122    )122    )
123123
124## Synchronizing tables124## Synchronizing tables
125125
126After 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).


Powered by Sphene Community Tools