Improve the settings method, allow for execution of mayan-edms.py without an existing local.py file

This commit is contained in:
Roberto Rosario
2014-10-09 19:34:51 -04:00
parent 0222474afa
commit 9bf1b3b95a
8 changed files with 23 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = (
#Django
# Django
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.auth',
@@ -204,7 +204,8 @@ STATICFILES_FINDERS = (
# --------- Django compressor -------------
COMPRESS_PARSER = 'compressor.parser.HtmlParser'
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter']
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter',
'compressor.filters.cssmin.CSSMinFilter']
COMPRESS_ENABLED = False
# ---------- Django sendfile --------------
SENDFILE_BACKEND = 'sendfile.backends.simple'
@@ -261,5 +262,5 @@ REST_FRAMEWORK = {
CELERY_TIMEZONE = 'UTC'
CELERY_ENABLE_UTC = True
CELERY_ALWAYS_EAGER = True
#------------ CORS ------------
# ------------ CORS ------------
CORS_ORIGIN_ALLOW_ALL = True