summaryrefslogtreecommitdiffstats
path: root/module/web/urls.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-15 17:48:30 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-15 17:48:30 +0100
commit95d09b338ac7aed2b387bf143a5cfd1c4b29f612 (patch)
tree2f6c078f95bbc80f423609bacab8066fe86d7067 /module/web/urls.py
parentgui queue view - unstable (non thread safe) (diff)
downloadpyload-95d09b338ac7aed2b387bf143a5cfd1c4b29f612.tar.xz
new Django webinterface(in development), small fixes
Diffstat (limited to 'module/web/urls.py')
-rw-r--r--module/web/urls.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/module/web/urls.py b/module/web/urls.py
new file mode 100644
index 000000000..3e573aa95
--- /dev/null
+++ b/module/web/urls.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+from django.conf.urls.defaults import *
+from django.contrib import admin
+from django.conf import settings
+
+from os.path import join
+
+admin.autodiscover()
+
+urlpatterns = patterns('',
+ # Example:
+ # (r'^pyload/', include('pyload.foo.urls')),
+
+ # 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:
+ (r'^admin/', include(admin.site.urls)),
+ #(r'^json/', include(ajax.urls)),
+ (r'^media/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.MEDIA_ROOT}),
+ (r'^login/$', 'django.contrib.auth.views.login', {'template_name': join(settings.TEMPLATE,'login.html')}),
+ (r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': join(settings.TEMPLATE,'logout.html')}),
+ (r'^home/$', 'pyload.views.home'),
+ (r'^downloads/$', 'pyload.views.downloads'),
+ (r'^queue/$', 'pyload.views.queue'),
+ (r'^logs/$', 'pyload.views.logs'),
+ (r'^$', 'pyload.views.home'),
+ )