2

I am working with Amazon S3 to serve static files and also using heroku as a Paas. I following this tutorial. I did a,

python manage.py collectstatic

locally and it worked just fine but when i do a,

heroku run python manage.py collectstatic --noinput

i get the error,

django.core.exceptions.ImproperlyConfigured: Error importing storage module storages.backends.s3boto: "No module named storages.backends.s3boto"

What am i doing wrong here.

Suziemac Tani
  • 455
  • 9
  • 23
  • did you install (requirements.txt) the correct library? – EsseTi May 17 '13 at 09:23
  • yes i did, infact i did a `pip freeze requirements.txt`. it works for me – Suziemac Tani May 17 '13 at 09:25
  • 1
    is there `django-storages` in the requirements? – EsseTi May 17 '13 at 09:31
  • 1
    @EsseTi you my friend are genius, thats what was missing, apparently ma small brains thought if i did `pip freeze requirements.txt` it would add libraries that are not there. Thanks – Suziemac Tani May 17 '13 at 09:45
  • you are welcome. i'll write an answer so you can mark it as accepted and people will not try to answer your question. – EsseTi May 17 '13 at 09:49
  • Does this answer your question? [Django storages: Import Error - no module named storages](https://stackoverflow.com/questions/23207192/django-storages-import-error-no-module-named-storages) – Daniel Long Mar 10 '20 at 23:18

1 Answers1

10

the django-storages is missing. do a new pip freeze > requirements.txt

EsseTi
  • 4,079
  • 5
  • 36
  • 63