On 16-7-2012 21:46, Simon wrote:

> I created a unit test on Django to create a user account and send a 
> verification e-mail. The user is created, but the e-mail fails to send. The 
> e-mail's default contents are supposed to be created as a field in the user 
> when a user is created, but for some reason, Django is claiming -
> 
> DatabaseError: no such column: app_userprofile.default_email_header
> 
> It works fine when the account is created manually, though for some reason 
> it fails to create that column in the database when done from a unit test. 
> Any suggestions for fixing this?

Apologies for the late reply.
I would investigate if the manual creation still works on a blank
database. It's the primary difference between a unit test and a
production db. Remember that syncdb does not alter tables, so the
default_email_header column may be a relic of a previous syncdb and
isn't created properly on a clean environment.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to