1
0
mirror of https://github.com/fspc/workstand.git synced 2025-03-13 01:43:22 -04:00

57 lines
1.4 KiB
Python
Raw Normal View History

import os
import sys
from .base import * # noqa
2016-03-23 16:29:28 -06:00
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ')8(+b48*njk+e^8-l!6s3k4d=z(#g$v=)i^=_p-l*#-kk=!v_d'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Covers regular testing and django-coverage
if 'test' in sys.argv or 'test_coverage' in sys.argv:
DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' # noqa
2016-03-23 16:29:28 -06:00
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose'
},
},
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(pathname)s %(message)s'
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
'bikeshop': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
}
},
}
2016-04-03 19:38:12 -06:00
INSTALLED_APPS += [ # noqa
2017-01-01 17:23:43 -06:00
'corsheaders',
]
MIDDLEWARE_CLASSES.insert(0, 'django.middleware.common.CommonMiddleware') # noqa
2017-01-01 17:23:43 -06:00
# MIDDLEWARE_CLASSES += [
# 'debug_toolbar.middleware.DebugToolbarMiddleware'
# ]
2016-04-03 19:38:12 -06:00
2017-01-01 17:23:43 -06:00
CORS_ORIGIN_ALLOW_ALL = True
2017-01-01 22:07:22 -06:00
ALLOWED_HOSTS = ['workstand.docker','localhost']