Answers for "django drop database postgres"

1

django drop database postgres

find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc"  -delete

# Check status of files >
python3 manage.py showmigrations

create news migrations 

Enjoy:)
Posted by: Guest on February-14-2021
0

rebuild database from zero django postgres

sudo su postgres
psql
drop database your_database_name;
create database your_database_name with owner user_you_use_in_django;
\q
exit
Posted by: Guest on January-11-2021

Code answers related to "django drop database postgres"

Python Answers by Framework

Browse Popular Code Answers by Language