POSTing to /accounts/signup/ stalls django process #74

derks opened this Issue Jul 30, 2011 · 3 comments


None yet

2 participants

derks commented Jul 30, 2011

On a freshly installed 'helloworld' project, following the documentation to setup Userena, I am experiencing a very odd situation where the django 'runserver' process completely hangs after submitting from the /accounts/signup/ form. In PDB, I can catch the submission in the 'signup()' view just after "if request.method == 'POST':" ... PDB then hangs forever:

$ python helloworld/ runserver
Validating models...

0 errors found
Django version 1.3, using settings 'helloworld.settings'
Development server is running at
Quit the server with CONTROL-C.
[30/Jul/2011 17:32:17] "GET /accounts/signup/ HTTP/1.1" 200 1375

> /Users/wdierkes/devel/django-userena/userena/
-> form = signup_form(request.POST, request.FILES)
(Pdb) continue
... hangs forever ....

After this, attempting to making any further requests to localhost:8000/ all just hang as well.

derks commented Jul 30, 2011

In PDB, if I 'step' through the code... I can see where what appears to be a circular reference loop starts. In the above (in userena), signup_form is a SignupForm, which subclasses django.forms.Form() .... when stepping through PDB I can see that a deep copy is initiated in a line like

self.fields = deepcopy(self.base_fields)

But this just seems to run up and down the python standard library continually doing a 'deepcopy'... and never ends. I held down 'enter' (step mode) for a good minute with no end in site. Any idea what might be going on here?

@derks derks closed this Jul 30, 2011
@derks derks reopened this Jul 30, 2011
derks commented Jul 31, 2011

This turned out to be related to the default mail facility in Django, which defaults to SMTP. Therefore, if 'EMAIL_BACKEND' is not defined properly, users will experience this issue... which took a long time to narrow down.

@derks derks pushed a commit to datafolklabs/django-userena that referenced this issue Jul 31, 2011
BJ Dierkes Adding doc about EMAIL_BACKEND, RE Issue #74 cbdc7bf
wunki commented Aug 1, 2011

Merged in commit 3182d5f.

@wunki wunki closed this Aug 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment