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:
- Delete your
migrations
folder from your project root. - Create a new
migrations
folder. - Add a
__init__.py
empty file in that folder. - Run
python manage.py makemigrations
andpython manage.py migrate
.
This will just create a fresh migration file.
Post a Comment for "Issue Creating Django Models"