django.db.utils.OperationalError: no such table: django_session code example
Example 1: django no such table
python manage.py makemigrations
python manage.py migrate --run-syncdb
Example 2: no such table: django_session
python manage.py migrate
Example 3: django.db.utils.OperationalError: no such table:
python manage.py makemigrations
python manage.py migrate
Example 4: no such table: django_session admin
python ./manage.py migrate
python ./manage.py makemigrations
Example 5: django.db.utils.OperationalError: no such table:
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
Example 6: django.db.utils.OperationalError: no such table:
rm db.sqlite3