django-categories/editor/settings.py

10 lines
415 B
Python
Raw Normal View History

2009-08-27 15:53:14 +00:00
from django.conf import settings
import django
DJANGO10_COMPAT = django.VERSION[0] < 1 or (django.VERSION[0] == 1 and django.VERSION[1] < 1)
MEDIA_PATH = getattr(settings, 'EDITOR_MEDIA_PATH', '/media/editor/')
2010-04-26 18:56:55 +00:00
STATIC_URL = getattr(settings, 'STATIC_URL', settings.MEDIA_URL)
2009-08-27 15:53:14 +00:00
# Link to google APIs instead of using local copy of JS libraries
MEDIA_HOTLINKING = getattr(settings, 'EDITOR_MEDIA_HOTLINKING', False)