project/urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 23:40:34 +0530
changeset 96 178b89a3ca4f
parent 94 87e77aa18610
child 106 3a31881564ba
permissions -rw-r--r--
Removed unwanted files and made more changes to make SciPyCon a clean app.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
#django
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
from django.conf.urls.defaults import include
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
from django.conf.urls.defaults import patterns
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
from django.conf import settings
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
from django.contrib import admin
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
from django.views.generic.simple import direct_to_template
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
from django.conf.urls.defaults import *
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
admin.autodiscover()
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
96
178b89a3ca4f Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 94
diff changeset
    11
# Admin
178b89a3ca4f Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 94
diff changeset
    12
urlpatterns = patterns('',
40
c8414e2b34ce Added my talks list page.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 33
diff changeset
    13
    url(r'^$',  direct_to_template, {"template": "home.html"}, name='home'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
    (r'^comments/', include('django.contrib.comments.urls')),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
    (r'^admin/(.*)', admin.site.root),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
# Talks, etc.
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    19
urlpatterns += patterns('project.scipycon.talk.views',
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    20
    url(r'^talks/$', 'list_talks', name='list_talks'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    21
    url(r'^talks/talk/(?P<id>\d+)/$', 'talk', name='talk_detail'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    22
    url(r'^submit-talk/$', 'submit_talk', name='scipycon_submit_talk'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    23
    url(r'^edit-talk/(?P<id>\d+)/$', 'edit_talk', name='scipycon_edit_talk'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    24
    url(r'^talks-cfp/list-talks/(?P<id>\d+)/$', 'list_talks',
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    25
        name='scipycon_list_talk'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
# Registration
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    29
urlpatterns += patterns('project.scipycon.registration.views',
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    30
    url(r'^registrations/$', 'registrations', name='scipycon_registrations'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    31
    url(r'^submit-registration/$', 'submit_registration', name='scipycon_submit_registration'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    32
    url(r'^edit-registration/(?P<id>\d+)/$', 'edit_registration',
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    33
        name='scipycon_edit_registration'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
    url(r'^download_csv/', 'download_csv', name="download_csv"),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
# Authentication and Profile
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    39
urlpatterns += patterns('project.scipycon.user.views',
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    40
    url(r'^login/$', 'login', name='scipycon_login'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    41
    url(r'^logout/$', 'logout', name='scipycon_logout'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    42
    url(r'^account/$', 'account', name='scipycon_account'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    43
    url(r'^password/$', 'password', name='scipycon_password'), # change pwd
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    44
    url(r'^username/$', 'username', name='scipycon_username'), # change uname
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    45
    url(r'^edit-profile/$', 'edit_profile', name='scipycon_edit_profile'),
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    46
    url(r'^get-usernames/$', 'get_usernames', name='scipycon_get_usernames'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
89
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    49
# Proceedings
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    50
urlpatterns += patterns('project.scipycon.proceedings.views',
93
e86755df35da Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 89
diff changeset
    51
    url(r'^proceedings/submit/$', 'submit',
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    52
        name='scipycon_submit_proceedings'),
93
e86755df35da Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 89
diff changeset
    53
    url(r'^proceedings/submit/(?P<id>\d+)/$', 'submit', 
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    54
        name='scipycon_submit_proceedings'),
93
e86755df35da Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 89
diff changeset
    55
    url(r'^proceedings/show_paper/(?P<id>\d+)/$', 'show_paper', 
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    56
        name='scipycon_show_paper'),
89
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    57
    )
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    58
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
# About pages and all other static html pages
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    60
urlpatterns += patterns('',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    61
    url(r'^about/accommodation/$', 
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
        direct_to_template, {"template": "about/accommodation.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    63
        name='scipycon_accommodation'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    64
    url(r'^about/food/$',
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    65
        direct_to_template, {"template": "about/food.html"}, name='scipycon_food'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    66
    url(r'^about/venue/$',
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    67
        direct_to_template, {"template": "about/venue.html"}, name='scipycon_venue'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    68
    url(r'^about/reaching/$', 
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    69
        direct_to_template, {"template": "about/reaching.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    70
        name='scipycon_reaching'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    71
    url(r'^talks-cfp/$', 
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    72
        direct_to_template, {"template": "talk/talks-cfp.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    73
        name='scipycon_talks_cfp'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    74
    url(r'^talks-cfp/schedule/$', 
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    75
        direct_to_template, {"template": "talk/schedule.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    76
        name='scipycon_schedule'),
76
c1f967c47334 Added tutorial schedule.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 73
diff changeset
    77
    url(r'^talks-cfp/tutorial/$', 
c1f967c47334 Added tutorial schedule.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 73
diff changeset
    78
        direct_to_template, {"template": "talk/tutorial-schedule.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    79
        name='scipycon_tutorial_schedule'),
73
05e834df29ff Added split schedule for tutorial and sprint.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 40
diff changeset
    80
    url(r'^talks-cfp/sprint/$', 
05e834df29ff Added split schedule for tutorial and sprint.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 40
diff changeset
    81
        direct_to_template, {"template": "talk/sprint-schedule.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    82
        name='scipycon_sprint_schedule'),
33
7dc40ba1b35c Added speakers section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 24
diff changeset
    83
    url(r'^talks-cfp/speakers/$', 
7dc40ba1b35c Added speakers section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 24
diff changeset
    84
        direct_to_template, {"template": "talk/speakers.html"},
94
87e77aa18610 Moved the files to new Django app named scipycon and modified settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 93
diff changeset
    85
        name='scipycon_speakers'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    86
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    87
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    88
# Password reset
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    89
urlpatterns += patterns('django.contrib.auth.views',
96
178b89a3ca4f Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 94
diff changeset
    90
     url(r'^password-reset/$', 'password_reset', name='scipycon_password_reset'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    91
     url(r'^password-reset-done/$', 'password_reset_done'),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    92
     url(r'^password-reset-confirm/(?P<uidb36>[-\w]*)/(?P<token>[-\w]*)$', 'password_reset_confirm'),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    93
     url(r'^password-reset-complete/$', 'password_reset_complete'),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    94
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    95
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    96
# Serve static files in DEBUG = True mode
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    97
if settings.DEBUG:
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    98
    urlpatterns += patterns('',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    99
        (r'^media/(?P<path>.*)$', 'django.views.static.serve',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   100
         {'document_root': settings.MEDIA_ROOT}),
85
07b48746fe29 Changed the URL mapper for loading static content in debug mode. Appended static/.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 76
diff changeset
   101
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   102
         {'document_root': settings.STATIC_ROOT}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   103
    )