1. Benoit Chesneau
  2. django-authopenid
Issue #43 duplicate

Patch to make it work with current trunk of django-registration

Jure Čuhalev
created an issue

Django-registration assumes two registration parameters. Here's a patch that works for me:

{{{

!patch

diff -r 8fa4626ed8d7 django_authopenid/urls.py --- a/django_authopenid/urls.py Wed Aug 26 17:27:01 2009 +0200 +++ b/django_authopenid/urls.py Mon Oct 26 14:39:14 2009 +0100 @@ -24,7 +24,10 @@

urlpatterns = patterns('', # django registration activate - url(r'^activate/(?P<activation_key>\w+)/$', reg_views.activate, name='registration_activate'), + url(r'^activate/(?P<activation_key>\w+)/$', + reg_views.activate, + { 'backend': 'registration.backends.default.DefaultBackend' }, + name='registration_activate'),

 # user profile

@@ -48,7 +51,9 @@ url(r'^signout/$', oid_views.signout, name='user_signout'), url(r'^signin/complete/$', oid_views.complete_signin, name='user_complete_signin'), url(r'^signin/$', oid_views.signin, name='user_signin'), - url(r'^signup/$', reg_views.register, name='registration_register'), + url(r'^signup/$', reg_views.register, + { 'backend': 'registration.backends.default.DefaultBackend' }, + name='registration_register'), url(r'^signup/complete/$',direct_to_template, {'template': 'registration/registration_complete.html'}, name='registration_complete'),

}}}

Comments (3)

  1. Log in to comment