summaryrefslogtreecommitdiffstats
path: root/module/web/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/urls.py')
-rw-r--r--module/web/urls.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/module/web/urls.py b/module/web/urls.py
new file mode 100644
index 000000000..9fe11f925
--- /dev/null
+++ b/module/web/urls.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+from django.conf.urls.defaults import *
+from django.contrib import admin
+from django.conf import settings
+
+
+admin.autodiscover()
+
+urlpatterns = patterns('',
+ # Example:
+
+ # 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')),
+
+ (r'^admin/', include(admin.site.urls)), # django 1.0 not working
+ (r'^json/', include('ajax.urls')),
+ (r'^flashgot$', 'cnl.views.flashgot'),
+ (r'^flash(got)?/?', include('cnl.urls')),
+ (r'^crossdomain.xml$', 'cnl.views.crossdomain'),
+ (r'^jdcheck.js', 'cnl.views.jdcheck'),
+ (r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': '/media/img/favicon.ico'}),
+ (r'^media/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.MEDIA_ROOT}),
+ (r'^', include('pyload.urls')),
+ )