root / urls.py @ 71:00236c4d72ba
History | View | Annotate | Download (821 Bytes)
1 |
from django.conf.urls.defaults import * |
---|---|
2 |
from django.conf import settings |
3 |
|
4 |
urlpatterns = [] |
5 |
|
6 |
# Static files
|
7 |
if settings.DEBUG:
|
8 |
urlpatterns += patterns('django.views.static',
|
9 |
(r'^static/(?P<path>.*)$', 'serve', |
10 |
{'document_root': settings.MEDIA_ROOT}),
|
11 |
(r'^favicon.ico$', 'serve', |
12 |
{'path': "favicon.ico"}), |
13 |
(r'^robots.txt$', 'serve', |
14 |
{'path': "robots.txt"}), |
15 |
) |
16 |
urlpatterns += patterns('',
|
17 |
(r'^support/?$', 'grnet_aai.aai.views.support'), |
18 |
(r'^help/?$', 'grnet_aai.aai.views.support',{ 'mode': 'help' }), |
19 |
(r'^debug/?$', 'grnet_aai.aai.views.debug'), |
20 |
(r'^setlanguage/(.*)', 'grnet_aai.aai.views.setlanguage'), |
21 |
(r'^participants/?$', 'grnet_aai.aai.views.idp_list'), |
22 |
(r'^/?$', 'grnet_aai.aai.views.index'), |
23 |
(r'([^/]+)/?$', 'grnet_aai.aai.views.static'), |
24 |
) |
25 |
|