urls.py 722 Bytes
Newer Older
1
2
3
4
5
6
7
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('go.views',

8
9
10
11
12
13
    # / - Homepage url.
    url(r'^$', 'index', name = 'homepage'),

    # /about - About page.
    url(r'^about/?$', 'about', name = 'about'),

Jean Michel Rouly's avatar
Jean Michel Rouly committed
14
15
16
    # /signup - Signup page for access.
    url(r'^signup/?$', 'signup', name = 'signup'),

17
    # /admin - Administrator interface.
18
19
    url(r'^admin/', include(admin.site.urls)),
)
20
21
22
23
24
25
26
27
28

urlpatterns += patterns('django.contrib.auth.views',

    # Auth pages
    url(r'^login$', 'login', {'template_name' : 'login.html'},
        name='website_login'),
    url(r'^logout$', 'logout', {'next_page' : '/'},
        name='website_logout'),
)