Error while hosting on heroku

67 views
Skip to first unread message

shree hari

unread,
Mar 13, 2020, 11:15:17 AM3/13/20
to Django users
here's the paste of the error: https://del.dog/ewoghelahu.txt
have already run makemigrations and migrate. It runs fine on my local machine. Can somebody please help me ?

Philip Mitchell

unread,
Mar 13, 2020, 11:51:21 AM3/13/20
to Django users
what command did you run fro migrations, you need to run heroku migrate commands

shree hari

unread,
Mar 13, 2020, 12:35:45 PM3/13/20
to Django users
heroku run python manage.py migrate --app appname
is the command i used.

Jorge Gimeno

unread,
Mar 13, 2020, 2:08:58 PM3/13/20
to django...@googlegroups.com
if you used --app appname, then migrations didn't run.  You can use 'heroku run python manage.py migrate blog' (without the single quotes) to migrate the blog app models, or 'heroku run python manage.py migrate' (again without single quotes) to migrate all the models in the project.

-Jorge

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c6345f03-1d23-4f4e-98cc-f311c6af0c9b%40googlegroups.com.

shree hari

unread,
Mar 13, 2020, 2:33:45 PM3/13/20
to Django users
I tried that too.
Still its the same.

Jorge Gimeno

unread,
Mar 13, 2020, 2:39:24 PM3/13/20
to django...@googlegroups.com
Have you checked the logs to see what the command returns?

-Jorge

On Fri, Mar 13, 2020 at 11:34 AM shree hari <shreeh...@gmail.com> wrote:
I tried that too.
Still its the same.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

mohamed khaled

unread,
Mar 13, 2020, 3:48:29 PM3/13/20
to django...@googlegroups.com, Django users
Do you use postgres ???

On Mar 13 2020, at 5:15 pm, shree hari <shreeh...@gmail.com> wrote:
here's the paste of the error: https://del.dog/ewoghelahu.txt
have already run makemigrations and migrate. It runs fine on my local machine. Can somebody please help me ?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Sai Sandeep Rayanuthala

unread,
Mar 13, 2020, 4:48:59 PM3/13/20
to django...@googlegroups.com
You need to type 
Heroku run bash -a appname

Make sure you configured your postgres database correctly.


On Sat, 14 Mar 2020, 00:04 shree hari, <shreeh...@gmail.com> wrote:
I tried that too.
Still its the same.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

shree hari

unread,
Mar 13, 2020, 6:44:55 PM3/13/20
to Django users
Yes

shree hari

unread,
Mar 13, 2020, 6:45:26 PM3/13/20
to Django users
Hope i have done.
Will check again though
Reply all
Reply to author
Forward
0 new messages