Closed jtratner closed 12 years ago
r-
We have abandoned jingo_minify
and therefore we shouldn't use js()
any more. I was the one who made the switch to django_compressor
and in doing so I (thought) replace js()
and css()
with the new way of doing it. I'm surprised I missed the js()
one and I will do something about that.
Regarding the confusion about the settings. What was it that confused you? One thing I can see is that it's not clear that the settings directory is under the "project" directory. It does however become more obvious once you realise you have to rename "project" to "myapp".
Regarding the jingo
needed in INSTALLED_APPS
. I don't think that needs to be an installed app. It actually kicks in from being set in TEMPLATE_LOADERS
in funfactory.
I think this is all we need to make playdoh work out-of-the-box https://github.com/mozilla/playdoh/pull/132
On the settings confusion: I think it was mostly a conceptual mistake: I'd been working with single file "settings.py" settings files for django for quite a while, and (for whatever reason), didn't occur to me that you could make the setting into an elegant package structure instead. In hindsight, had I looked at appname/settings/__init__.py
, I probably would have figured it out.
Right now, the example app (showing bleach sanitation) doesn't work right out of the box because
jingo
andjingo_minify
aren't installed AND there is noMINIFY_BUNDLE
setting initially. While I appreciated the opportunity to debug a mysterious django error message and thereby read the docs forjingo_minify
, it was a bit of a downer to not be able to say "oooh, pretty playdoh!" right out of the box ;)Anyways, I've attached a commit that makes everything run (by removing the
js()
tag inexample_base.html
and addingjingo
toINSTALLED_APPS
).Also, it would be really helpful to add a line in the
Settings Management API
part of the docs to say that you should set the settings for the playdoh app inyourapp/settings/base.py
andyourapp/settings/local.py
, just to give a newcomer a tip in the right direction to finding those things.