classy-python/ccbv

(How to) Static files in local env?

arruda opened this issue · 7 comments

Hi there, I'm having some trouble trying to run now locally the project (not on heroku), and I don't know if I'm missing something or what, but what do you guys do on the settings to tell django not to look on amazon for the static files? (or that's not an option?)
I set locally my own s3 info, but I think it's a hard thing to presume everyone will have a s3 bucket just to run it locally =/
Not sure, but I believe a way of "fixing" this would be to put this as a env var too: STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'.
Thanks

Heya :)

It's been a while, but I seem to remember that we run export STATIC_URL='/static_media/' before running the server.

Hope that helps!

Yeah, I tried setting it to '/static/' it even goes points there, on the STATIC_URL, but when I do the collectstatics it tries to put things in the non-configured amazon S3, so that's why I think the problem lies in the STATICFILES_STORAGE.... but I still think I'm missing some other envvar that would do this switch =/

You should never need to run collectstatic in development.

Oh my god... that's the risks of doing something too late at night... sorry... forgot the DEBUG=True u.u
So it wasn't serving the statics.... Damm it... sorry...sorry... my bad....

No worries :)

OOoo you're adding docker! Exciting!

Hehehe, yeap. I was using it to check what where the OS libraries required
to run the project. Then I though "Well why not add a docket to make the
dev easier?"
Soon I'll finish it, just missing the docs on how to run and instal the
tool.
Em 03/12/2014 13:39, "Charlie Denton" notifications@github.com escreveu:

OOoo you're adding docker! Exciting!


Reply to this email directly or view it on GitHub
#97 (comment)
.