53👍
Try fake migrate
to zero.
Your migration history shows that sessions
table was already made, but you don’t have real table.
so following below
python manage.py migrate --fake sessions zero
# then your sessions migrate will be
python manage.py showmigrations
sessions
[ ] 0001_initial
# then migrate with --fake-initial again
python manage.py migrate --fake-initial
Then try again.
0👍
I’m using django-v-3
Here is the answer how to solve this issue?
1. python manage.py migrate –fake
2. python manage.py migrate –fake-initial
3. Then write python manage.py runserver
Enjoy
If facing issue use python manage.py help. I hope that you will get the solution.
- How does this Man-In-The-Middle attack work?
- TypeError: create_superuser() missing 1 required positional argument: 'profile_picture'
- Apache strips down "Authorization" header
0👍
Since you were using sqlite and changed to Postgres, your user and password no longer work and you got that error. Depending on what is your docker-compose.yml file you can do a migrate command:
docker-compose exec web python manage.py migrate
and than create a new superuser:
docker-compose exec web python manage.py createsuperuser
Now your app should work.
- How to upgrade Django on ubuntu?
- Django unable to find MySQLdb python module
- How to set timeout for urlfetch in Google App Engine?
- Django template indentation guideline
- Installing django 1.5(development version) in virtualenv