author | Shantanu <shantanu@fossee.in> |
Wed, 20 Jan 2010 14:35:55 +0530 | |
changeset 2 | 2c1e89e4a5a2 |
parent 1 | a370c5796d08 |
child 6 | 9f3c0f4908f6 |
permissions | -rw-r--r-- |
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'), |
1
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
23 |
(r'^captcha/', include('captcha.urls')), |
2
2c1e89e4a5a2
Corrected name of project to ws_reg.
Shantanu <shantanu@fossee.in>
parents:
1
diff
changeset
|
24 |
(r'^submission/$','ws_reg.upload.views.submission'), |
1
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
25 |
(r'^databrowse/(.*)',databrowse.site.root), |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
26 |
(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }), |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
27 |
) |