Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new database setup #1

Open
paulks-software opened this issue Aug 13, 2023 · 0 comments
Open

A new database setup #1

paulks-software opened this issue Aug 13, 2023 · 0 comments

Comments

@paulks-software
Copy link

paulks-software commented Aug 13, 2023

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!

@paulks-software paulks-software changed the title A new project setup A new database setup Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant