urls.py 814 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 18 19
    # /my - My-Links page, view and review links.
    url(r'^my/?$', 'my_links', name = 'my_links'),

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

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

    # Auth pages
    url(r'^login$', 'login', {'template_name' : 'login.html'},
28
        name='go_login'),
29
    url(r'^logout$', 'logout', {'next_page' : '/'},
30
        name='go_logout'),
31
)