"Error creating new content types. Please make sure contenttypes " RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
"Error creating new content types. Please make sure contenttypes "
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
solution to error above ;)
delete from django_content_type
delete this line from django_migrations 37,contenttypes,0002_remove_content_type_name,2015-07-25 03:25:25.153186
python manage.py migrate contenttypes
python manage.py makemigrations
python manage.py migrate
sqlite>
sqlite> delete from django_migrations where app='contenttypes'
...> ;
sqlite>
sqlite>
delete from django_content_type
delete from django_migrations where name = '0002_remove_content_type_name'
python manage.py migrate contenttypes
python manage.py migrate app
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
solution to error above ;)
delete from django_content_type
delete this line from django_migrations 37,contenttypes,0002_remove_content_type_name,2015-07-25 03:25:25.153186
python manage.py migrate contenttypes
python manage.py makemigrations
python manage.py migrate
sqlite>
sqlite> delete from django_migrations where app='contenttypes'
...> ;
sqlite>
sqlite>
delete from django_content_type
delete from django_migrations where name = '0002_remove_content_type_name'
python manage.py migrate contenttypes
python manage.py migrate app
Comments