corrcet problems with django-registration and django 1.6 V00.09.03
authorymh <ymh.work@gmail.com>
Wed, 02 Apr 2014 02:16:01 +0200
changeset 291 3368f480039b
parent 290 0ed5a088fdf4
child 292 36c7f7ff3ffb
corrcet problems with django-registration and django 1.6
src/egonomy/__init__.py
src/egonomy/auth/urls.py
src/egonomy/urls.py
--- a/src/egonomy/__init__.py	Wed Apr 02 01:53:48 2014 +0200
+++ b/src/egonomy/__init__.py	Wed Apr 02 02:16:01 2014 +0200
@@ -1,4 +1,4 @@
-VERSION = (0, 9, 2, "final", 0)
+VERSION = (0, 9, 3, "final", 0)
 
 VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/egonomy/auth/urls.py	Wed Apr 02 02:16:01 2014 +0200
@@ -0,0 +1,30 @@
+from django.conf.urls import patterns, url, include
+from django.contrib.auth import views as auth_views
+
+
+urlpatterns = patterns('',
+
+      #override the default urls
+      url(r'^password/change/$',
+                    auth_views.password_change,
+                    name='password_change'),
+      url(r'^password/change/done/$',
+                    auth_views.password_change_done,
+                    name='password_change_done'),
+      url(r'^password/reset/$',
+                    auth_views.password_reset,
+                    name='password_reset'),
+      url(r'^password/reset/done/$',
+                    auth_views.password_reset_done,
+                    name='password_reset_done'),
+      url(r'^password/reset/complete/$',
+                    auth_views.password_reset_complete,
+                    name='password_reset_complete'),
+      url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
+                    auth_views.password_reset_confirm,
+                    name='password_reset_confirm'),
+
+      #and now add the registration urls
+      url(r'', include('registration.backends.default.urls')),
+      
+)
\ No newline at end of file
--- a/src/egonomy/urls.py	Wed Apr 02 01:53:48 2014 +0200
+++ b/src/egonomy/urls.py	Wed Apr 02 02:16:01 2014 +0200
@@ -42,7 +42,7 @@
     url(r'^ajax-login/', 'egonomy.views.ajax_login', name='ajax_login'),
     url(r'^check-egonomy-token/(?P<token>[\w\d\-_=]*)$', 'egonomy.views.check_egonomy_token', name='check_egonomy_token'),
     (r'^api/', include('egonomy.api.urls')),
-    (r'^accounts/', include('registration.backends.default.urls')),
+    (r'^accounts/', include('egonomy.auth.urls')),
 )
 urlpatterns += staticfiles_urlpatterns()
 urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
\ No newline at end of file