You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i delete a database completely and create a new one from scratch and i run python manage.py migrate --run-syncdb
then i want to create a new super user python manage.py createsuperuser
i enter all the credentials and i get error :
sqlite3.IntegrityError: FOREIGN KEY constraint failed
what might be the issue? I just copied the repo, didn`t write anything else, just deleted migrations and db, i just want to know how to set it up from scratch, thank you!
The text was updated successfully, but these errors were encountered:
If i delete a database completely and create a new one from scratch and i run
python manage.py migrate --run-syncdb
then i want to create a new super user
python manage.py createsuperuser
i enter all the credentials and i get error :
sqlite3.IntegrityError: FOREIGN KEY constraint failed
what might be the issue? I just copied the repo, didn`t write anything else, just deleted migrations and db, i just want to know how to set it up from scratch, thank you!
The text was updated successfully, but these errors were encountered: