Skip to content Skip to sidebar Skip to footer

Issue Creating Django Models

I'm trying to create some new tables, through Django Models, but, everytime I try to Migrate the changes, appears the following error. It says it is a syntax error, though I can't

Solution 1:

  1. Delete your migrations folder from your project root.
  2. Create a new migrations folder.
  3. Add a __init__.py empty file in that folder.
  4. Run python manage.py makemigrations and python manage.py migrate.

This will just create a fresh migration file.


Post a Comment for "Issue Creating Django Models"