summaryrefslogtreecommitdiffstats
path: root/module/web/pyload/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/pyload/urls.py')
-rw-r--r--module/web/pyload/urls.py22
1 files changed, 17 insertions, 5 deletions
diff --git a/module/web/pyload/urls.py b/module/web/pyload/urls.py
index 9c7942492..667a4ed3d 100644
--- a/module/web/pyload/urls.py
+++ b/module/web/pyload/urls.py
@@ -1,7 +1,19 @@
+
+from os.path import join
+
+from django.conf import settings
from django.conf.urls.defaults import *
-urlpatterns = patterns('',
- (r'^login/$', 'pyload.views.login'),
- (r'^home/$', 'pyload.views.home'),
- (r'^test/$', 'pyload.views.home'),
-)
+
+urlpatterns = patterns('pyload',
+ (r'^home/$', 'views.home'),
+ (r'^downloads/$', 'views.downloads',{},'downloads'),
+ (r'^queue/$', 'views.queue',{}, 'queue'),
+ (r'^logs/$', 'views.logs',{}, 'logs'),
+ (r'^$', 'views.home',{}, 'home'),
+ )
+
+urlpatterns += patterns('django.contrib.auth',
+ (r'^login/$', 'views.login', {'template_name': join(settings.TEMPLATE, 'login.html')}),
+ (r'^logout/$', 'views.logout', {'template_name': join(settings.TEMPLATE, 'logout.html')}, 'logout'),
+) \ No newline at end of file