I deployed my django app and when I tried
heroku run python manage.py syncdb
I got a timeout awaiting process error. Superuser is not created for the system yet, though i did syncdb by using:
heroku run:detached python manage.py createsuperuser
But this does not prompt me for the superuser.
Port 5000 is not blocked in my system. How do I make heroku run work (or) how do I create the super user?
First, and most importantly, Heroku web applications require a Procfile . This file is used to explicitly declare your application's process types and entry points. It is located in the root of your repository. This Procfile requires Gunicorn, the production web server that we recommend for Django applications.
Fortunately, Django comes with a lightweight web server for development purposes, which requires little to no configuration. Note: Technically, you can take advantage of the same development server built into Django on Heroku.
do not detach the heroku shell:
heroku run python manage.py createsuperuser
worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With