DuGites / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

registration complete redirect broken #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
not sure if this is something to do with my setup (I have a line like    
(r'^', include('userprofile.urls')), at the bottom of my urls.py) but I get
a 404 at /complete/ after registering. Patch follows.

ericd:django-profile eric$ svn diff
Index: userprofile/views.py
===================================================================
--- userprofile/views.py    (revision 370)
+++ userprofile/views.py    (working copy)
@@ -316,7 +316,7 @@
                 EmailValidation.objects.add(user=newuser, email=newuser.email)

             newuser.save()
-            return HttpResponseRedirect('%scomplete/' % request.path_info)
+            return HttpResponseRedirect(reverse('signup_complete'))
     else:
         form = RegistrationForm()

Original issue reported on code.google.com by ericd...@gmail.com on 2 Dec 2008 at 1:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i think the above patch is needed, or some similar patch

Original comment by ericd...@gmail.com on 2 Dec 2008 at 7:27

GoogleCodeExporter commented 9 years ago
Your solution is perfect, there was some bugs on the redirection code. Thanks.

Eric, you are coding great, if you want access to the svn you could join the 
project.

Original comment by david.ru...@gmail.com on 2 Dec 2008 at 8:29