Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Django Postgresql database admin, where is the super user?

I know it's quite newbie, but I just started using heroku. Please bear with me.

If you develop on heroku, it provides you postgresql with username and password.

However when you access it from your django admin page using that, it returns:

relation "auth_user" does not exist
LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user..

My question is what do you have to do to create the super user for the admin page?

Thanks in advance.

like image 498
tipsywacky Avatar asked Dec 14 '22 21:12

tipsywacky


1 Answers

You can do this

heroku run python manage.py migrate

instead of

heroku run python manage.py syncdb
like image 155
Jay Suthar Avatar answered Dec 29 '22 00:12

Jay Suthar