beer-inder / Assignment1_7427

0 stars 0 forks source link

Migrate command giving error while deploying app on Heroku #14

Closed beer-inder closed 4 years ago

beer-inder commented 4 years ago

I am trying to run migrate command to deploy the app on heroku, but its giving error as Connection refused. Detailed error logs attached Heroku_migrate_command_errore.txt

beer-inder commented 4 years ago

Again human error and quite similar to 6th Point(above). Accidently copied the manage.py file from one repo to other. Problem was in below line in manage.py in main()

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Assignment1_7420_WebApp.settings')

"Assignment1_7420_WebApp" is the repo/project name. But while copying from other repo, it was wrong name. So whenver python manage.py createsuperuser was used, it search for DB in wrong repo, which was causing and issue.