Shifting from django 1.8 to 1.6.5 -
localhost/admin
app has stopped working downgraded django version 1.8 version 1.6.5. can fix problem.
here error says:
operationalerror @ /admin/ no such column: django_content_type.name request method: request url: http://192.168.1.12/admin/ django version: 1.6.5 exception type: operationalerror exception value: no such column: django_content_type.name exception location: /usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py in execute, line 451 python executable: /usr/bin/python python version: 2.7.6 python path: ['/home/ankit/www/library_site/public_html', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/pilcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client'] server time: thu, 4 jun 2015 12:01:52 +0000
please suggest me solution not want create entire app scratch again.
the correct way downgrade unapply migrations except first 1 (manage.py migrate <app_label> 0001
) built-in apps. bring model tables state before 1.7, match model code in 1.6.
you can either upgrade, follow these steps, , downgrade again, or can manually add name
column django_content_type
table. however, suspect there quite few other changes require manual work in last case.
Comments
Post a Comment