Created
March 7, 2013 20:55
-
-
Save nvie/5111715 to your computer and use it in GitHub Desktop.
What's the best place to put this code? This is basically setup code that you want to execute on Django's boot time. I'm currently putting it in an arbitrary app's __init__.py, but that feels a bit lame. Ideas? Settings seems like a bad idea, too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jingo | |
from django_assets.env import get_env | |
jingo.env.assets_environment = get_env() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment