urls.py
author Shantanu <shantanu@fossee.in>
Mon, 25 Jan 2010 01:51:38 +0530
changeset 14 b4f4d4e8c03e
parent 12 10d86ada90c2
child 15 8e9e5d1bb830
permissions -rw-r--r--
Corrected a view in urls.py.
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 django.contrib import databrowse
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     8
from upload.models import Participant
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
databrowse.site.register(Participant)
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
urlpatterns = patterns('',
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
    # Example:
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
    # (r'^ocr/', include('ocr.foo.urls')),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
    # to INSTALLED_APPS to enable admin documentation:
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    19
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    20
    # Uncomment the next line to enable the admin:
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    21
        (r'^admin/(.*)', admin.site.root),
12
10d86ada90c2 Added custom view for looking at registrants yAy.
Shantanu <shantanu@fossee.in>
parents: 6
diff changeset
    22
	(r'^$','ws_reg.upload.views.register_user'),
14
b4f4d4e8c03e Corrected a view in urls.py.
Shantanu <shantanu@fossee.in>
parents: 12
diff changeset
    23
        (r'^list/$','ws_reg.upload.views.view_registrants'),
6
9f3c0f4908f6 Corrected urls.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    24
        (r'^captcha/', include('captcha.urls')), 	
12
10d86ada90c2 Added custom view for looking at registrants yAy.
Shantanu <shantanu@fossee.in>
parents: 6
diff changeset
    25
        (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
    26
)