settings.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Minimal Django settings for mootools depender.
  2. DEBUG = True
  3. TEMPLATE_DEBUG = DEBUG
  4. # List of callables that know how to import templates from various sources.
  5. TEMPLATE_LOADERS = (
  6. 'django.template.loaders.filesystem.load_template_source',
  7. 'django.template.loaders.app_directories.load_template_source',
  8. )
  9. MIDDLEWARE_CLASSES = (
  10. )
  11. ROOT_URLCONF = 'mootools.urls'
  12. INSTALLED_APPS = (
  13. 'depender'
  14. )
  15. # Depender configuration
  16. # Configuration of MooTools Depender for Django
  17. # =============================================
  18. import os
  19. import logging
  20. logging.basicConfig(level=logging.INFO)
  21. DEPENDER_PACKAGE_YMLS = (
  22. os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "libs", "core", "package.yml")),
  23. os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "libs", "more", "package.yml")),
  24. # Don't forget to add the depender client to your libraries!
  25. os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "client", "package.yml")),
  26. )
  27. DEPENDER_SCRIPTS_JSON = []
  28. # Set to true to re-load all JS every time. (slowish)
  29. DEPENDER_DEBUG = os.getenv("DEPENDER_DEBUG", "0").lower() not in ["0","false",""]
  30. DEPENDER_YUI_PATH = os.path.join(os.path.dirname(__file__), "../../compressors/yuicompressor-2.4.2.jar")