Re: Adding ImageField to Existing Models Results in Errors...and Confusion

2012-03-02 Thread 赵帅
"no such column: report_userprofile.profile_pic" This error suggests that your database table has no such column profile_pic. After you add one column in the model of django,you have to add the according column with proper column type for the table.Django won't do it for you. You can refer to http

Adding ImageField to Existing Models Results in Errors...and Confusion

2012-03-02 Thread DF
I'm currently working on my first Django project and have hit a roadblock in regard to adding an ImageField to an existing model. I currently have a model for a user posting content and one for django- profiles. For the former, I added an ImageField so the used can submit a photo to accompany the