Subscribed unsubscribe Subscribe Subscribe

psql -d postgres
# drop database project_name;
# CREATE DATABASE project_name;
python manage.py createsuperuser
python manage.py makemigrations
python manage.py migrate

heroku pg:reset DATABASE
git add .
git commit -m "my django app"
git push heroku master
heroku run python manage.py makemigrations
heroku run python manage.py migrate
Remove all ads