Django-compressor/assets not working on Heroku

27 views
Skip to first unread message

Po Chen

unread,
Jan 6, 2015, 6:08:17 AM1/6/15
to django...@googlegroups.com
Hi there,

I've been trying to get some automatic assets handling setup in my tiny django app.
I've tried django-compressor and django-assets, no success so far.
Both of the libraries seem to fail to create files in the staticfiles directory on Heroku.
Both of them work locally with/without debug on.

I feel like I must be missing something really trivial..

Your help will be much appreciated!

P.S. I created a support ticket and got an answer telling me to check in the staticfiles directory,
which is created automatically when deploying django apps (created when collectstatic is run post-deploy)
I did try committing the directory with a .keep file in it, but no success either.

Thanks,
Po

Collin Anderson

unread,
Jan 8, 2015, 1:09:43 PM1/8/15
to django...@googlegroups.com
Hi,

Try this:

heroku run python manage.py collectstatic --noinput


Collin
Reply all
Reply to author
Forward
0 new messages