Closed guanghao479 closed 12 years ago
Yes, this is a db migration error. I got it too. I have not add south yet, everytime I just delete the db and sync again. I found this method is pretty clean for now. But migration is the correct solution anyway.
Please review the pull request.
On Mon, Apr 9, 2012 at 8:10 AM, xinghan < reply@reply.github.com
wrote:
Yes, this is a db migration error. I got it too. I have not add south yet, everytime I just delete the db and sync again. I found this method is pretty clean for now. But migration is the correct solution anyway.
Reply to this email directly or view it on GitHub: https://github.com/fmaj7/mymd/issues/37#issuecomment-5026738
South has been added
@xinghan This reveals the problem of database migration we haven't fix.
The stack track is:
DatabaseError at / no such column: profiles_profile.city Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.3.1 Exception Type: DatabaseError Exception Value:
no such column: profiles_profile.city Exception Location: /home/fmaj7/dev/mymd/src/mymd-env/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 234 Python Executable: /home/fmaj7/dev/mymd/src/mymd-env/bin/python Python Version: 2.7.2 Python Path:
['/home/fmaj7/dev/mymd/src/mymd/apps', '/home/fmaj7/dev/mymd/src/mymd', '/home/fmaj7/dev/mymd/src/mymd-env/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/home/fmaj7/dev/mymd/src/mymd-env/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg', '/home/fmaj7/dev/mymd/src/mymd-env/lib/python2.7', '/home/fmaj7/dev/mymd/src/mymd-env/lib/python2.7/plat-linux2', '/home/fmaj7/dev/mymd/src/mymd-env/lib/python2.7/lib-tk', '/home/fmaj7/dev/mymd/src/mymd-env/lib/python2.7/lib-old', '/home/fmaj7/dev/mymd/src/mymd-env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/home/fmaj7/dev/mymd/src/mymd-env/local/lib/python2.7/site-packages', '/home/fmaj7/dev/mymd/src/mymd-env/local/lib/python2.7/site-packages/PIL'] Server time: Mon, 9 Apr 2012 00:13:46 -0400