Created
June 29, 2016 13:22
-
-
Save pterk/39e62945d8996cf34f68068adc42b5ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import environ | |
from .local import LOGGING | |
ROOT_DIR = environ.Path(__file__) - 3 # (/a/b/myfile.py - 3 = /) | |
# speed up tests | |
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' | |
MEDIA_ROOT = str(ROOT_DIR.path('media_files')) | |
PASSWORD_HASHERS = [ | |
'django.contrib.auth.hashers.MD5PasswordHasher', | |
] | |
SYSTEMJS_ENABLED = True | |
SYSTEMJS_ENABLED = False | |
ALLOWED_HOSTS = [ | |
'ima.local', | |
'127.0.0.1', | |
'imtool.imagency.com' | |
] | |
# Make logging less verbose | |
LOGGING['loggers']['projects.signals'] = { | |
'handlers': ['console'], | |
'level': 'WARN', | |
} | |
LOGGING['loggers']['collector']['level'] = 'WARN' | |
LOGGING['loggers']['compute_kpi_values']['level'] = 'WARN' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment