|
1 from django.conf.urls.defaults import * |
|
2 from django.conf import settings |
|
3 |
|
4 |
|
5 # Uncomment the next two lines to enable the admin: |
|
6 from django.contrib import admin |
|
7 admin.autodiscover() |
|
8 |
|
9 urlpatterns = patterns('', |
|
10 # Example: |
|
11 # (r'^app/', include('app.foo.urls')), |
|
12 |
|
13 # Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
14 # to INSTALLED_APPS to enable admin documentation: |
|
15 (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
16 |
|
17 # Uncomment the next line to enable the admin: |
|
18 (r'^admin/', include(admin.site.urls)), |
|
19 (r'^login/$', 'app.projrev.views.login.login_validate'), |
|
20 (r'^logout/$', 'app.projrev.views.login.logout_view'), |
|
21 (r'^proposal/submit/$', 'app.projrev.views.proposal.submit'), |
|
22 (r'^proposal/review/$', 'app.projrev.views.proposal.review'), |
|
23 (r'^proposal/review/(?P<micr_code>[A-Z]{6}\d{9})/$', |
|
24 'app.projrev.views.proposal.review'), |
|
25 (r'^proposal/rank/$', 'app.projrev.views.proposal.rank'), |
|
26 (r'^proposal/rank/(?P<micr_code>[A-Z]{6}\d{9})$', |
|
27 'app.projrev.views.proposal.rank'), |
|
28 (r'^site-content/(?P<path>.*)', 'django.views.static.serve', |
|
29 {'document_root': settings.MEDIA_ROOT}), |
|
30 |
|
31 ) |