cablegates/pandora/urls.py

43 lines
1.4 KiB
Python
Raw Normal View History

2009-06-08 18:08:59 +02:00
from django.conf.urls.defaults import *
2009-08-16 14:23:29 +02:00
from django.conf import settings
2009-06-08 18:08:59 +02:00
# Uncomment the next two lines to enable the admin:
2009-08-16 14:23:29 +02:00
from django.contrib import admin
admin.autodiscover()
2009-06-08 18:08:59 +02:00
urlpatterns = patterns('',
# Example:
2009-12-31 16:04:32 +01:00
(r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')),
2010-08-07 16:31:20 +02:00
(r'^api/upload/$', 'archive.views.firefogg_upload'),
2010-02-08 15:56:25 +05:30
(r'^site.js$', 'app.views.site_js'),
2010-09-07 15:08:23 +02:00
(r'^pandora.json$', 'app.views.pandora_json'),
2010-08-24 19:16:33 +02:00
(r'^$', 'app.views.intro'),
(r'^ra$', 'app.views.index'),
(r'^timeline$', 'app.views.timeline'),
2010-09-14 16:10:37 +02:00
(r'^file/(?P<oshash>.*)$', 'archive.views.lookup_file'),
2010-02-06 13:54:39 +05:30
(r'^r/(?P<key>.*)$', 'oxuser.views.recover'),
2010-09-07 16:05:38 +02:00
(r'', include('backend.urls')),
2009-06-08 18:08:59 +02:00
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
2010-07-19 19:39:00 +02:00
(r'^admin/(.*)', include(admin.site.urls)),
2009-06-08 18:08:59 +02:00
)
2009-08-16 14:23:29 +02:00
if settings.DEBUG:
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_ROOT}),
(r'^tests/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.TESTS_ROOT}),
2009-08-16 14:23:29 +02:00
)