summaryrefslogtreecommitdiff
path: root/django/srpproject/urls.py
diff options
context:
space:
mode:
authorausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-15 23:15:31 +0000
committerausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-15 23:15:31 +0000
commit53dcb038bd5637bee2ee68fb380920b2b0d9febb (patch)
tree7add126609f8cca823a0621d118575fb2d1b558a /django/srpproject/urls.py
parent233850bb437c8dd666ee6594076a903e530a4ab9 (diff)
This adds a file 'utils.py' to simplify templating.
Functions exist to create headers that include javascript files, and create javascript functions for login and registration. There are also functions that create login and registration forms. These functions don't necessarily account for everything a web developer might want to do, but it should simplify things for most developers and provide guidelines for developers who want to build on top of this functionality. Views.py now builds the login and register pages based on these functions. The register page now uses the login.html template, and the register.html template should be deleted in the next release.
Diffstat (limited to 'django/srpproject/urls.py')
-rw-r--r--django/srpproject/urls.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/django/srpproject/urls.py b/django/srpproject/urls.py
index d436697..c50fd72 100644
--- a/django/srpproject/urls.py
+++ b/django/srpproject/urls.py
@@ -3,27 +3,27 @@ from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
-from srpproject.srp import views
+import srp.views
urlpatterns = patterns('',
# Login and regiser pages. These are mainly for testing.
- (r'^srp/register/$', views.register_page),
- (r'^srp/login/$', views.login_page),
+ (r'^srp/register/$', srp.views.register_page),
+ (r'^srp/login/$', srp.views.login_page),
# These pages are necessary for users to register
- (r'^srp/register/salt/$', views.register_salt),
- (r'^srp/register/user/$', views.register_user),
+ (r'^srp/register/salt/$', srp.views.register_salt),
+ (r'^srp/register/user/$', srp.views.register_user),
# These pages are necessary for users to log in
- (r'^srp/handshake/$', views.handshake),
- (r'^srp/authenticate/$', views.verify),
+ (r'^srp/handshake/$', srp.views.handshake),
+ (r'^srp/authenticate/$', srp.views.verify),
# This page allows users to login without javascript,
# but the browser posts their username and password in plaintext.
- (r'^srp/noJs/$', views.no_javascript),
+ (r'^srp/noJs/$', srp.views.no_javascript),
# Only include these if you are upgrading an existing installation to SRP
- (r'^srp/upgrade/authenticate/$', views.upgrade_auth),
- (r'^srp/upgrade/verifier/$', views.upgrade_add_verifier),
+ (r'^srp/upgrade/authenticate/$', srp.views.upgrade_auth),
+ (r'^srp/upgrade/verifier/$', srp.views.upgrade_add_verifier),
)