Skip to content

Instantly share code, notes, and snippets.

@nvie
Created March 7, 2013 20:55
Show Gist options
  • Save nvie/5111715 to your computer and use it in GitHub Desktop.
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.
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