urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 12 Oct 2009 19:33:02 +0530
changeset 27 87910f9bd6ec
parent 21 afd266350231
permissions -rwxr-xr-x
Corrected and added registration and activation templates.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
from django.conf.urls.defaults import *
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     2
from django.conf import settings
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     3
from django.views.generic.simple import direct_to_template
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     4
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     5
import os.path
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
# Uncomment the next two lines to enable the admin:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
# from django.contrib import admin
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
# admin.autodiscover()
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
urlpatterns = patterns('',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
    # Example:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
    # (r'^scipy/', include('scipy.foo.urls')),
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
    # to INSTALLED_APPS to enable admin documentation:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
    # Uncomment the next line to enable the admin:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
    # (r'^admin/', include(admin.site.urls)),
21
afd266350231 Merged urls.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 15
diff changeset
    21
    (r'^$', 'conference.views.home'),
8
f0b5ff862c6d Added django-registration and its settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 6
diff changeset
    22
    (r'^accounts/', include('registration.urls')),
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    23
    (r'^register/','conference.views.register'),
15
8de52278da5d Fixed Login and Logout part.
Shantanu <shantanu@fossee.in>
parents: 12
diff changeset
    24
    (r'^logout/','conference.views.logout_view'),
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    25
    (r'^regthank/(?P<id>\d+)/$', 'conference.views.regthank'),
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    26
    (r'^site-content/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
)