project/urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 20 Jul 2010 03:18:54 +0530
changeset 109 0c24d69f0631
parent 106 3a31881564ba
child 120 e9172b05bba5
permissions -rw-r--r--
Manipulated all URLs to recognize the scope of the entities.
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
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
     2
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
     3
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
     4
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
     5
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
     6
from django.views.generic.simple import redirect_to
1
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
106
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    11
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
    12
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
    13
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
    14
    PROGRAM_PATTERN_CORE, EVENT_PATTERN_CORE) 
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    15
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
    16
# 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
    17
urlpatterns = patterns('',
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    18
    url(r'^$', redirect_to, {'url': '/%s/' % (settings.CURRENT_SCOPE)}),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    19
    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
    20
        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
    21
    (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
    22
    (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
    23
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
# 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
    26
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
    27
    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
    28
        'list_talks', name='list_talks'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    29
    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
    30
        '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
    31
    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
    32
        '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
    33
    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
    34
        'edit_talk', name='scipycon_edit_talk'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    35
    url(r'^%s/talks-cfp/list-talks/(?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
    36
        '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
    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
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
# 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
    40
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
    41
    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
    42
        name='scipycon_registrations'),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    43
    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
    44
        'submit_registration', name='scipycon_submit_registration'),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    45
    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
    46
        'edit_registration', name='scipycon_edit_registration'),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    47
    url(r'^%s/download_csv/' % (SCOPE_ARG_PATTERN),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    48
        'download_csv', name="download_csv"),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
# 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
    52
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
    53
    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
    54
        '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
    55
    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
    56
        '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
    57
    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
    58
        '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
    59
    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
    60
        '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
    61
    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
    62
        '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
    63
    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
    64
        '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
    65
    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
    66
        '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
    67
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    68
89
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    69
# 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
    70
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
    71
    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
    72
        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
    73
    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
    74
        '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
    75
    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
    76
        '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
    77
    )
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    78
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    79
# 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
    80
urlpatterns += patterns('',
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    81
    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
    82
        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
    83
        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
    84
    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
    85
        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
    86
        name='scipycon_food'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    87
    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
    88
        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
    89
        name='scipycon_venue'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
    90
    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
    91
        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
    92
        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
    93
    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
    94
        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
    95
        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
    96
    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
    97
        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
    98
        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
    99
    url(r'^%s/talks-cfp/tutorial/$' % (SCOPE_ARG_PATTERN),
76
c1f967c47334 Added tutorial schedule.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 73
diff changeset
   100
        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
   101
        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
   102
    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
   103
        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
   104
        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
   105
    url(r'^%s/talks-cfp/speakers/$' % (SCOPE_ARG_PATTERN),
33
7dc40ba1b35c Added speakers section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 24
diff changeset
   106
        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
   107
        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
   108
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   109
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   110
# 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
   111
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
   112
     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
   113
     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
   114
     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
   115
     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
   116
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   117
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   118
# 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
   119
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
   120
    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
   121
        (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
   122
         {'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
   123
        (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
   124
         {'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
   125
    )