urls.py
author Shantanu <shantanu@fossee.in>
Sun, 24 Jan 2010 14:58:51 +0530
changeset 11 ae643a9734f3
parent 6 9f3c0f4908f6
child 12 10d86ada90c2
permissions -rw-r--r--
AArrh more typos in admin block.
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),
2
2c1e89e4a5a2 Corrected name of project to ws_reg.
Shantanu <shantanu@fossee.in>
parents: 1
diff changeset
    22
	(r'^$','ws_reg.upload.views.upload_file'),
6
9f3c0f4908f6 Corrected urls.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    23
        (r'^captcha/', include('captcha.urls')), 	
1
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    24
        (r'^databrowse/(.*)',databrowse.site.root),        
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    25
	(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    26
)