project/urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 08 Sep 2010 15:36:49 +0530
changeset 154 d26cedf5e0d3
parent 151 f85b864f5f8b
child 165 e5c0674761e7
permissions -rw-r--r--
Add my talks URL and remove talks-cfp prefix from URLs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
120
e9172b05bba5 Removed CSV download and re-ordered admin and comment URL patterns.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 109
diff changeset
     1
from django.conf import settings
1
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
120
e9172b05bba5 Removed CSV download and re-ordered admin and comment URL patterns.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 109
diff changeset
     4
from django.conf.urls.defaults import url
1
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
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
     7
from django.views.generic.simple import redirect_to
120
e9172b05bba5 Removed CSV download and re-ordered admin and comment URL patterns.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 109
diff changeset
     8
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
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
    11
106
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    12
PROGRAM_PATTERN_CORE = r'[a-z](?:[0-9a-z]|_[0-9a-z])*'
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    13
EVENT_PATTERN_CORE =r'(?:[0-9a-z]|_[0-9a-z])*' 
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    14
SCOPE_ARG_PATTERN = r'(?P<scope>%s/%s)' % (
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    15
    PROGRAM_PATTERN_CORE, EVENT_PATTERN_CORE) 
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    16
151
f85b864f5f8b Added sitemaps framework and robots framework.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 120
diff changeset
    17
sitemaps = {}
f85b864f5f8b Added sitemaps framework and robots framework.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 120
diff changeset
    18
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
    19
# 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
    20
urlpatterns = patterns('',
151
f85b864f5f8b Added sitemaps framework and robots framework.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 120
diff changeset
    21
    (r'^admin/(.*)', admin.site.root),
120
e9172b05bba5 Removed CSV download and re-ordered admin and comment URL patterns.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 109
diff changeset
    22
    (r'^comments/', include('django.contrib.comments.urls')),
151
f85b864f5f8b Added sitemaps framework and robots framework.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 120
diff changeset
    23
    (r'^robots\.txt$', include('robots.urls')),
f85b864f5f8b Added sitemaps framework and robots framework.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 120
diff changeset
    24
    (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
f85b864f5f8b Added sitemaps framework and robots framework.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 120
diff changeset
    25
    url(r'^$', redirect_to, {'url': '/%s/' % (settings.CURRENT_SCOPE)}),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    26
    url(r'^%s/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    27
        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
    28
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
# 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
    31
urlpatterns += patterns('project.scipycon.talk.views',
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    32
    url(r'^%s/talks/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    33
        'list_talks', name='list_talks'),
154
d26cedf5e0d3 Add my talks URL and remove talks-cfp prefix from URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 151
diff changeset
    34
    url(r'^%s/my-talks/$' % (SCOPE_ARG_PATTERN),
d26cedf5e0d3 Add my talks URL and remove talks-cfp prefix from URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 151
diff changeset
    35
        'list_my_talks', name='list_my_talks'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    36
    url(r'^%s/talks/talk/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    37
        'talk', name='talk_detail'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    38
    url(r'^%s/submit-talk/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    39
        'submit_talk', name='scipycon_submit_talk'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    40
    url(r'^%s/edit-talk/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    41
        'edit_talk', name='scipycon_edit_talk'),
154
d26cedf5e0d3 Add my talks URL and remove talks-cfp prefix from URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 151
diff changeset
    42
    url(r'^%s/list-talks/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    43
        'list_talks', 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
    44
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
# 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
    47
urlpatterns += patterns('project.scipycon.registration.views',
106
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    48
    url(r'^%s/registrations/$' % (SCOPE_ARG_PATTERN), 'registrations',
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    49
        name='scipycon_registrations'),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    50
    url(r'^%s/submit-registration/$' % (SCOPE_ARG_PATTERN),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    51
        'submit_registration', name='scipycon_submit_registration'),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    52
    url(r'^%s/edit-registration/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    53
        'edit_registration', 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
    54
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
# 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
    57
urlpatterns += patterns('project.scipycon.user.views',
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    58
    url(r'^%s/login/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    59
        'login', name='scipycon_login'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    60
    url(r'^%s/logout/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    61
        'logout', name='scipycon_logout'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    62
    url(r'^%s/account/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    63
        'account', name='scipycon_account'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    64
    url(r'^%s/password/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    65
        'password', name='scipycon_password'), # change pwd
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    66
    url(r'^%s/username/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    67
        'username', name='scipycon_username'), # change uname
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    68
    url(r'^%s/edit-profile/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    69
        'edit_profile', name='scipycon_edit_profile'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    70
    url(r'^%s/get-usernames/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    71
        '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
    72
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    73
89
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    74
# 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
    75
urlpatterns += patterns('project.scipycon.proceedings.views',
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    76
    url(r'^%s/proceedings/submit/$' % (SCOPE_ARG_PATTERN), '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
    77
        name='scipycon_submit_proceedings'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    78
    url(r'^%s/proceedings/submit/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    79
        'submit', name='scipycon_submit_proceedings'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    80
    url(r'^%s/proceedings/show_paper/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    81
        'show_paper', name='scipycon_show_paper'),
89
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    82
    )
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    83
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    84
# 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
    85
urlpatterns += patterns('',
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    86
    url(r'^%s/about/accommodation/$' % (SCOPE_ARG_PATTERN),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    87
        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
    88
        name='scipycon_accommodation'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    89
    url(r'^%s/about/food/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    90
        direct_to_template, {"template": "about/food.html"},
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    91
        name='scipycon_food'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    92
    url(r'^%s/about/venue/$' % (SCOPE_ARG_PATTERN),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    93
        direct_to_template, {"template": "about/venue.html"},
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    94
        name='scipycon_venue'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    95
    url(r'^%s/about/reaching/$' % (SCOPE_ARG_PATTERN),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    96
        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
    97
        name='scipycon_reaching'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    98
    url(r'^%s/talks-cfp/$' % (SCOPE_ARG_PATTERN),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    99
        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
   100
        name='scipycon_talks_cfp'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   101
    url(r'^%s/talks-cfp/schedule/$' % (SCOPE_ARG_PATTERN),
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
        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
   103
        name='scipycon_schedule'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   104
    url(r'^%s/talks-cfp/tutorial/$' % (SCOPE_ARG_PATTERN),
76
c1f967c47334 Added tutorial schedule.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 73
diff changeset
   105
        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
   106
        name='scipycon_tutorial_schedule'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   107
    url(r'^%s/talks-cfp/sprint/$' % (SCOPE_ARG_PATTERN),
73
05e834df29ff Added split schedule for tutorial and sprint.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 40
diff changeset
   108
        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
   109
        name='scipycon_sprint_schedule'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   110
    url(r'^%s/talks-cfp/speakers/$' % (SCOPE_ARG_PATTERN),
33
7dc40ba1b35c Added speakers section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 24
diff changeset
   111
        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
   112
        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
   113
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   114
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   115
# 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
   116
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
   117
     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
   118
     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
   119
     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
   120
     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
   121
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   122
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   123
# 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
   124
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
   125
    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
   126
        (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
   127
         {'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
   128
        (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
   129
         {'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
   130
    )