StackOverflow-lite
Home Profile Post Question Recent Questions Logout

Post a Question

Q1) I have a very simple django app that I am attempting to deploy to heroku, but it keeps crashing. Everything works fine on my local machine, but not on heroku

Answer 1

It's better to import models that you will user, since it won't visually collide with django.db.models

Answer 2

I would suggest absolute imports as py3 get's rid of relative.

Answer 3

from . import models



Q2) I have a very simple django app that I am attempting to deploy to heroku, but it keeps crashing. Everything works fine on my local machine, but not on heroku

Answer 1

it's better to import models that you will user, since it won't visually collide with django.db.models

Answer 2

I would suggest absolute imports as py3 get's rid of relative/p>

Answer 3

from . import models