heroku / django-heroku

[DEPRECATED] Do not use! See https://github.com/heroku/django-heroku/issues/56
BSD 3-Clause "New" or "Revised" License
459 stars 142 forks source link

STATIC_ROOT warning despite using this library #14

Closed rachelwilson closed 6 years ago

rachelwilson commented 6 years ago

I am pretty new to heroku and django but I have been following these instructions https://devcenter.heroku.com/articles/django-app-configuration

I can succesfully run my application locally, but when trying to push the app to heroku I get:

File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", line 43, in path raise ImproperlyConfigured("You're using the staticfiles app " django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.

As far as I can tell from looking at your code this is exactly what django-heroku should be doing for me, I've tried adding the STATIC_ROOT but it makes no difference. As far as I can tell there isn't any significant difference between my skeleton application and the getting-started project https://github.com/heroku/python-getting-started which uses django-heroku and doesn't set the STATIC_ROOT either. I've compared the settings and they seem much the same.

Here's my code https://github.com/theodi/dataset-summaries-web

What am I doing wrong?

cesarmarroquin commented 6 years ago

I am also getting the same error as @rachelwilson . I have set the STATIC_ROOT variable like the error asks, have tried not having it, and it willl not allow me to deploy.

rachelwilson commented 6 years ago

In the end I think there was a problem with the heroku deployment. I deleted the heroku app and redeployed it and everything worked.. You can see more info here if you're interested (although it's mostly me and the heroku support people figuring out that the deployed app looked different than my local version without really figuring out why)