Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku django app createsuperuser

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?

like image 889
Aswin Murugesh Avatar asked Feb 27 '14 22:02

Aswin Murugesh


People also ask

What's the right Procfile requirements for Heroku with Django?

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.

Can I use Django with Heroku?

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.


1 Answers

do not detach the heroku shell:

heroku run python manage.py createsuperuser 

worked for me

like image 168
Fra Avatar answered Oct 04 '22 18:10

Fra