urls.py
author Shantanu <shantanu@fossee.in>
Mon, 25 Jan 2010 16:10:56 +0530
changeset 19 40a3fa500991
parent 16 b5bc2bff3055
permissions -rw-r--r--
turned debug=flase.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     1
from django.conf.urls.defaults import *
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     2
from django.conf import settings
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     3
from django.contrib import admin
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     4
admin.autodiscover()
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     5
from django.contrib.auth.decorators import login_required
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     6
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     7
from upload.models import Participant
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     8
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
urlpatterns = patterns('',
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
    # Example:
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
    # (r'^ocr/', include('ocr.foo.urls')),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
    # to INSTALLED_APPS to enable admin documentation:
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
    # Uncomment the next line to enable the admin:
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
        (r'^admin/(.*)', admin.site.root),
16
b5bc2bff3055 renamed views function name to older one.
Shantanu <shantanu@fossee.in>
parents: 15
diff changeset
    19
	(r'^$','ws_reg.upload.views.upload_file'),
14
b4f4d4e8c03e Corrected a view in urls.py.
Shantanu <shantanu@fossee.in>
parents: 12
diff changeset
    20
        (r'^list/$','ws_reg.upload.views.view_registrants'),
6
9f3c0f4908f6 Corrected urls.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    21
        (r'^captcha/', include('captcha.urls')), 	
12
10d86ada90c2 Added custom view for looking at registrants yAy.
Shantanu <shantanu@fossee.in>
parents: 6
diff changeset
    22
        (r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
1
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    23
)