Problem with profile picture and mysql ( URGENT !!!)

22 views
Skip to first unread message

Swathi Rajanna

unread,
Aug 8, 2014, 12:47:26 AM8/8/14
to django...@googlegroups.com
My app does not use south as it keeps me django.core.management Improperly configured error. hence I have to syncdb everytime. I wanted to add the image element to the user profile models.py already created. This gives me a unknown element image in fieldlist error, How can I fix this ?

p.s. I already tried creating a new app, differnet class in models.py. none of them are working.
Thanks !!

Collin Anderson

unread,
Aug 8, 2014, 8:42:19 AM8/8/14
to django...@googlegroups.com
you'll need to manually add the field to your database with something like:

alter table myapp_userprofile add image varchar(100);

Swathi Rajanna

unread,
Aug 8, 2014, 11:38:00 AM8/8/14
to django...@googlegroups.com
Thanks !! That worked !
Reply all
Reply to author
Forward
0 new messages