Skip to content


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

derks opened this Issue · 3 comments

2 participants


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.


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
@derks derks reopened this

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 referenced this issue from a commit in datafolklabs/django-userena
BJ Dierkes Adding doc about EMAIL_BACKEND, RE Issue #74 cbdc7bf

Merged in commit 3182d5f.

@wunki wunki closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.