|
1 from django.conf.urls.defaults import * |
|
2 from django.conf import settings |
|
3 from django.contrib import admin |
|
4 admin.autodiscover() |
|
5 from django.contrib.auth.decorators import login_required |
|
6 |
|
7 from django.contrib import databrowse |
|
8 from upload.models import Participant |
|
9 |
|
10 databrowse.site.register(Participant) |
|
11 |
|
12 urlpatterns = patterns('', |
|
13 # Example: |
|
14 # (r'^ocr/', include('ocr.foo.urls')), |
|
15 |
|
16 # Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
17 # to INSTALLED_APPS to enable admin documentation: |
|
18 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
19 |
|
20 # Uncomment the next line to enable the admin: |
|
21 (r'^admin/(.*)', admin.site.root), |
|
22 (r'^$','workshop_registration.upload.views.upload_file'), |
|
23 (r'^captcha/', include('captcha.urls')), |
|
24 (r'^submission/$','workshop_registration.upload.views.submission'), |
|
25 (r'^databrowse/(.*)',databrowse.site.root), |
|
26 (r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }), |
|
27 ) |