|
@@ -34,6 +34,7 @@ NICE_NAME = "Hue"
|
|
|
ENV_HUE_PROCESS_NAME = "HUE_PROCESS_NAME"
|
|
ENV_HUE_PROCESS_NAME = "HUE_PROCESS_NAME"
|
|
|
ENV_DESKTOP_DEBUG = "DESKTOP_DEBUG"
|
|
ENV_DESKTOP_DEBUG = "DESKTOP_DEBUG"
|
|
|
|
|
|
|
|
|
|
+
|
|
|
############################################################
|
|
############################################################
|
|
|
# Part 1: Logging and imports.
|
|
# Part 1: Logging and imports.
|
|
|
############################################################
|
|
############################################################
|
|
@@ -66,29 +67,33 @@ desktop.log.fancy_logging()
|
|
|
# Language code for this installation. All choices can be found here:
|
|
# Language code for this installation. All choices can be found here:
|
|
|
# http://www.i18nguy.com/unicode/language-identifiers.html
|
|
# http://www.i18nguy.com/unicode/language-identifiers.html
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
-#LANGUAGE_CODE = 'it'
|
|
|
|
|
|
|
|
|
|
SITE_ID = 1
|
|
SITE_ID = 1
|
|
|
|
|
|
|
|
# If you set this to False, Django will make some optimizations so as not
|
|
# If you set this to False, Django will make some optimizations so as not
|
|
|
# to load the internationalization machinery.
|
|
# to load the internationalization machinery.
|
|
|
USE_I18N = True
|
|
USE_I18N = True
|
|
|
|
|
+
|
|
|
|
|
+# If you set this to False, Django will not format dates, numbers and
|
|
|
|
|
+# calendars according to the current locale.
|
|
|
USE_L10N = True
|
|
USE_L10N = True
|
|
|
|
|
|
|
|
|
|
+# If you set this to False, Django will not use timezone-aware datetimes.
|
|
|
|
|
+USE_TZ = True
|
|
|
|
|
+
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
|
-# trailing slash if there is a path component (optional in other cases).
|
|
|
|
|
-# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
|
|
|
|
|
|
+# trailing slash.
|
|
|
|
|
+# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
|
|
|
MEDIA_URL = ''
|
|
MEDIA_URL = ''
|
|
|
|
|
|
|
|
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
|
|
|
|
|
-# trailing slash.
|
|
|
|
|
-# Examples: "http://foo.com/media/", "/media/".
|
|
|
|
|
-ADMIN_MEDIA_PREFIX = '/media/'
|
|
|
|
|
|
|
|
|
|
############################################################
|
|
############################################################
|
|
|
# Part 3: Django configuration
|
|
# Part 3: Django configuration
|
|
|
############################################################
|
|
############################################################
|
|
|
|
|
|
|
|
|
|
+# Additional locations of static files
|
|
|
|
|
+STATICFILES_DIRS = ()
|
|
|
|
|
+
|
|
|
# List of callables that know how to import templates from various sources.
|
|
# List of callables that know how to import templates from various sources.
|
|
|
TEMPLATE_LOADERS = (
|
|
TEMPLATE_LOADERS = (
|
|
|
'django.template.loaders.filesystem.Loader',
|
|
'django.template.loaders.filesystem.Loader',
|
|
@@ -126,6 +131,9 @@ if os.environ.get(ENV_DESKTOP_DEBUG):
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'desktop.urls'
|
|
ROOT_URLCONF = 'desktop.urls'
|
|
|
|
|
|
|
|
|
|
+# Hue runs its own wsgi applications
|
|
|
|
|
+WSGI_APPLICATION = None
|
|
|
|
|
+
|
|
|
TEMPLATE_DIRS = (
|
|
TEMPLATE_DIRS = (
|
|
|
get_desktop_root("core/templates")
|
|
get_desktop_root("core/templates")
|
|
|
)
|
|
)
|
|
@@ -181,6 +189,7 @@ FILE_UPLOAD_HANDLERS = (
|
|
|
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
|
|
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+
|
|
|
############################################################
|
|
############################################################
|
|
|
# Part 4: Installation of apps
|
|
# Part 4: Installation of apps
|
|
|
############################################################
|
|
############################################################
|