project/urls.py
author primal primal007@gmail.com
Tue, 06 Dec 2011 10:20:43 +0530
branch2011
changeset 512 d41189cf344d
parent 509 ef3377e227e4
child 515 b3e8172b0f86
permissions -rw-r--r--
day 2 first talk
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('',
382
0c66659b4807 changed the admin url to django version 1.3
Parth buch <parth.buch.115@gmail.com>
parents: 378
diff changeset
    21
    (r'^admin/', include(admin.site.urls)),
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'),
369
7ea06f159d15 Add the slides from the Conference and Tutorials to the new section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 342
diff changeset
    44
    url(r'^%s/download_slides/$' % (SCOPE_ARG_PATTERN),
7ea06f159d15 Add the slides from the Conference and Tutorials to the new section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 342
diff changeset
    45
        'download_slides', name='scipycon_download_slides'),
371
f2b47f5dac06 Changes to put a download videos link and page on scipy.in
Amit Sethi
parents: 369
diff changeset
    46
    url(r'^%s/download_videos/$' % (SCOPE_ARG_PATTERN),
f2b47f5dac06 Changes to put a download videos link and page on scipy.in
Amit Sethi
parents: 369
diff changeset
    47
        'download_videos', name='scipycon_download_videos'),
f2b47f5dac06 Changes to put a download videos link and page on scipy.in
Amit Sethi
parents: 369
diff changeset
    48
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
# 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
    52
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
    53
    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
    54
        name='scipycon_registrations'),
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    55
    url(r'^%s/submit-registration/$' % (SCOPE_ARG_PATTERN),
419
d68f4cfebfab changed the urls to make registration page static
Parth buch <parth.buch.115@gmail.com>
parents: 382
diff changeset
    56
        direct_to_template, {"template": "registration/submit-registration.html"},
d68f4cfebfab changed the urls to make registration page static
Parth buch <parth.buch.115@gmail.com>
parents: 382
diff changeset
    57
        name='scipycon_submit_registration'),
106
3a31881564ba Add a scope pattern to the URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    58
    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
    59
        'edit_registration', name='scipycon_edit_registration'),
256
3dedcb0a0233 Add a new URL for managing payments.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 192
diff changeset
    60
    url(r'^%s/regstats/$'% (SCOPE_ARG_PATTERN),
436
4899e9c34962 changed the link to registration stats
Parth buch <parth.buch.115@gmail.com>
parents: 429
diff changeset
    61
        'regstats', name="regstats"),
342
21dc37050a37 Make downloadable CSV for stats page.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 334
diff changeset
    62
    url(r'^%s/regstats/download$'% (SCOPE_ARG_PATTERN),
436
4899e9c34962 changed the link to registration stats
Parth buch <parth.buch.115@gmail.com>
parents: 429
diff changeset
    63
        'regstats_download', name="regstats_download"),
256
3dedcb0a0233 Add a new URL for managing payments.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 192
diff changeset
    64
    url(r'^%s/manage_payments/$'% (SCOPE_ARG_PATTERN),
3dedcb0a0233 Add a new URL for managing payments.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 192
diff changeset
    65
        'manage_payments', name="scipycon_manage_payments"),
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
    )
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
# 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
    69
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
    70
    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
    71
        '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
    72
    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
    73
        '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
    74
    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
    75
        '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
    76
    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
    77
        '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
    78
    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
    79
        '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
    80
    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
    81
        '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
    82
    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
    83
        'get_usernames', name='scipycon_get_usernames'),
237
4cff1f43e4e1 Changes to make it possible for someone to view daily dumps.
Amit Sethi
parents: 235
diff changeset
    84
    url(r'^%s/get-user-dump/$' % (SCOPE_ARG_PATTERN),
320
9414017a5589 Added view for automatic badge generation
Amit Sethi
parents: 301
diff changeset
    85
        'get_user_dump', name='scipycon_get_usernames'),
9414017a5589 Added view for automatic badge generation
Amit Sethi
parents: 301
diff changeset
    86
    url(r'^%s/badge/$' % (SCOPE_ARG_PATTERN),
9414017a5589 Added view for automatic badge generation
Amit Sethi
parents: 301
diff changeset
    87
        'badge', name='scipycon_badge'))
237
4cff1f43e4e1 Changes to make it possible for someone to view daily dumps.
Amit Sethi
parents: 235
diff changeset
    88
    
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    89
89
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    90
# 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
    91
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
    92
    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
    93
        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
    94
    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
    95
        '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
    96
    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
    97
        '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
    98
    )
4ad0ba26ba48 Added URL mappers for proceedings to urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 85
diff changeset
    99
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   100
# 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
   101
urlpatterns += patterns('',
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/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
   103
        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
   104
        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
   105
    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
   106
        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
   107
        name='scipycon_food'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   108
    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
   109
        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
   110
        name='scipycon_venue'),
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   111
    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
   112
        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
   113
        name='scipycon_reaching'),
464
cec3c7dc4138 Small fix
primal primal007@gmail.com
parents: 463
diff changeset
   114
    url(r'^%s/about/contact/$' % (SCOPE_ARG_PATTERN),
cec3c7dc4138 Small fix
primal primal007@gmail.com
parents: 463
diff changeset
   115
        direct_to_template, {"template": "about/contact.html"},
cec3c7dc4138 Small fix
primal primal007@gmail.com
parents: 463
diff changeset
   116
        name='scipycon_contact'),
503
2fd1aa38924e day zero post
primal primal007@gmail.com
parents: 487
diff changeset
   117
    url(r'^%s/about/day_zero/$' % (SCOPE_ARG_PATTERN),
2fd1aa38924e day zero post
primal primal007@gmail.com
parents: 487
diff changeset
   118
        direct_to_template, {"template": "about/day_zero.html"},
2fd1aa38924e day zero post
primal primal007@gmail.com
parents: 487
diff changeset
   119
        name='scipycon_day_zero'),
509
ef3377e227e4 Edited urls
primal primal007@gmail.com
parents: 503
diff changeset
   120
    url(r'^%s/about/day_one/$' % (SCOPE_ARG_PATTERN),
ef3377e227e4 Edited urls
primal primal007@gmail.com
parents: 503
diff changeset
   121
    	direct_to_template, {"template": "about/day_one.html"},
ef3377e227e4 Edited urls
primal primal007@gmail.com
parents: 503
diff changeset
   122
        name='scipycon_day_one'),
486
ea923104766c Speaker Info
primal primal007@gmail.com
parents: 464
diff changeset
   123
    url(r'^%s/about/speakerinfo/$' % (SCOPE_ARG_PATTERN),
ea923104766c Speaker Info
primal primal007@gmail.com
parents: 464
diff changeset
   124
        direct_to_template, {"template": "about/speakerinfo.html"},
487
f8d994c3d48d Minor Fixes
primal primal007@gmail.com
parents: 486
diff changeset
   125
        name='scipycon_sinfo'),        
165
e5c0674761e7 Added an about page for Hyderabad city and corresponding links.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 154
diff changeset
   126
    url(r'^%s/about/city/$' % (SCOPE_ARG_PATTERN),
e5c0674761e7 Added an about page for Hyderabad city and corresponding links.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 154
diff changeset
   127
        direct_to_template, {"template": "about/city.html"},
e5c0674761e7 Added an about page for Hyderabad city and corresponding links.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 154
diff changeset
   128
        name='scipycon_city'),
109
0c24d69f0631 Manipulated all URLs to recognize the scope of the entities.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 106
diff changeset
   129
    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
   130
        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
   131
        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
   132
    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
   133
        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
   134
        name='scipycon_schedule'),
458
65046b88b989 fixed a typo in urls.py
Parth buch <parth.buch.115@gmail.com>
parents: 457
diff changeset
   135
    url(r'^%s/talks-cfp/tutorial/$' % (SCOPE_ARG_PATTERN),
447
f91c329e13b5 activated the tutorials schedule
Parth buch <parth.buch.115@gmail.com>
parents: 436
diff changeset
   136
         direct_to_template, {"template": "about/tutorial.html"},
f91c329e13b5 activated the tutorials schedule
Parth buch <parth.buch.115@gmail.com>
parents: 436
diff changeset
   137
        name='scipycon_tutorial'),
458
65046b88b989 fixed a typo in urls.py
Parth buch <parth.buch.115@gmail.com>
parents: 457
diff changeset
   138
    url(r'^%s/talks-cfp/sprint/$' % (SCOPE_ARG_PATTERN),
454
2d3479837338 Added the sprint page
Parth buch <parth.buch.115@gmail.com>
parents: 447
diff changeset
   139
         direct_to_template, {"template": "talk/sprint-schedule.html"},
2d3479837338 Added the sprint page
Parth buch <parth.buch.115@gmail.com>
parents: 447
diff changeset
   140
         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
   141
    url(r'^%s/talks-cfp/speakers/$' % (SCOPE_ARG_PATTERN),
33
7dc40ba1b35c Added speakers section.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 24
diff changeset
   142
        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
   143
        name='scipycon_speakers'),
176
6a95fa45edf2 Added publicity page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 165
diff changeset
   144
    url(r'^%s/publicity/$' % (SCOPE_ARG_PATTERN),
6a95fa45edf2 Added publicity page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 165
diff changeset
   145
        direct_to_template, {"template": "about/publicity.html"},
6a95fa45edf2 Added publicity page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 165
diff changeset
   146
        name='scipycon_publicity'),
180
5787f3cb8c01 Added the registration fee page.
Kadambari Devarajan
parents: 176
diff changeset
   147
    url(r'^%s/about/fees/$' % (SCOPE_ARG_PATTERN),
5787f3cb8c01 Added the registration fee page.
Kadambari Devarajan
parents: 176
diff changeset
   148
        direct_to_template, {"template": "about/fees.html"},
5787f3cb8c01 Added the registration fee page.
Kadambari Devarajan
parents: 176
diff changeset
   149
        name='scipycon_fees'),
185
7071ab9a6703 added organizers page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 180
diff changeset
   150
    url(r'^%s/organizers/$' % (SCOPE_ARG_PATTERN),
7071ab9a6703 added organizers page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 180
diff changeset
   151
        direct_to_template, {"template": "about/organizers.html"},
7071ab9a6703 added organizers page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 180
diff changeset
   152
        name='scipycon_organizers'),
213
079c29b18517 Made sprints page, tutorials page and conference schedule page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 192
diff changeset
   153
    url(r'^%s/talks-cfp/conference/$' % (SCOPE_ARG_PATTERN),
079c29b18517 Made sprints page, tutorials page and conference schedule page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 192
diff changeset
   154
        direct_to_template, {"template": "talk/conf_schedule.html"},
079c29b18517 Made sprints page, tutorials page and conference schedule page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 192
diff changeset
   155
        name='scipycon_conference'),
079c29b18517 Made sprints page, tutorials page and conference schedule page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 192
diff changeset
   156
    url(r'^%s/tutorial/$' % (SCOPE_ARG_PATTERN),
079c29b18517 Made sprints page, tutorials page and conference schedule page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 192
diff changeset
   157
        direct_to_template, {"template": "about/tutorial.html"},
079c29b18517 Made sprints page, tutorials page and conference schedule page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 192
diff changeset
   158
        name='scipycon_tutorial'),
458
65046b88b989 fixed a typo in urls.py
Parth buch <parth.buch.115@gmail.com>
parents: 457
diff changeset
   159
    url(r'^%s/sprints/$' % (SCOPE_ARG_PATTERN),
65046b88b989 fixed a typo in urls.py
Parth buch <parth.buch.115@gmail.com>
parents: 457
diff changeset
   160
        direct_to_template, {"template": "about/sprints.html"},
65046b88b989 fixed a typo in urls.py
Parth buch <parth.buch.115@gmail.com>
parents: 457
diff changeset
   161
        name='scipycon_sprints'),
217
29e341584aba Added certificates page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 213
diff changeset
   162
    url(r'^%s/certificates/$' % (SCOPE_ARG_PATTERN),
29e341584aba Added certificates page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 213
diff changeset
   163
        direct_to_template, {"template": "about/certificates.html"},
29e341584aba Added certificates page.
Anoop Jacob Thomas<anoop@fossee.in>
parents: 213
diff changeset
   164
        name='scipycon_certificates'),
300
6e1001230377 Add a page for Important dates and all the boiler plate. Edit and improve the main page content.
Kadambari Devarajan <kadambari.devarajan@gmail.com>
parents: 276
diff changeset
   165
    url(r'^%s/about/dates/$' % (SCOPE_ARG_PATTERN),
6e1001230377 Add a page for Important dates and all the boiler plate. Edit and improve the main page content.
Kadambari Devarajan <kadambari.devarajan@gmail.com>
parents: 276
diff changeset
   166
        direct_to_template, {"template": "about/important_dates.html"},
6e1001230377 Add a page for Important dates and all the boiler plate. Edit and improve the main page content.
Kadambari Devarajan <kadambari.devarajan@gmail.com>
parents: 276
diff changeset
   167
        name='scipycon_imp_dates'),
301
49b56af22f04 Add a new page for Sponsors and all the boiler plate. Add responsibilities for each sponsor. Remove all the sponsor information from right hand menu.
Kadambari Devarajan <kadambari.devarajan@gmail.com>
parents: 300
diff changeset
   168
    url(r'^%s/about/sponsors/$' % (SCOPE_ARG_PATTERN),
49b56af22f04 Add a new page for Sponsors and all the boiler plate. Add responsibilities for each sponsor. Remove all the sponsor information from right hand menu.
Kadambari Devarajan <kadambari.devarajan@gmail.com>
parents: 300
diff changeset
   169
        direct_to_template, {"template": "about/sponsors.html"},
49b56af22f04 Add a new page for Sponsors and all the boiler plate. Add responsibilities for each sponsor. Remove all the sponsor information from right hand menu.
Kadambari Devarajan <kadambari.devarajan@gmail.com>
parents: 300
diff changeset
   170
        name='scipycon_sponsors'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   171
    )
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   172
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   173
# 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
   174
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
   175
     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
   176
     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
   177
     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
   178
     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
   179
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   180
429
cde70fd3073c changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
Parth buch <parth.buch.115@gmail.com>
parents: 419
diff changeset
   181
handler404 = 'project.scipycon.views.handler404'
cde70fd3073c changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
Parth buch <parth.buch.115@gmail.com>
parents: 419
diff changeset
   182
handler500 = 'project.scipycon.views.handler404'
334
730b6fc145d6 Added a 404 handler.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 320
diff changeset
   183
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   184
# 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
   185
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
   186
    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
   187
        (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
   188
         {'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
   189
        (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
   190
         {'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
   191
    )