Skip to content
Snippets Groups Projects
Commit 439122d1 authored by David Trattnig's avatar David Trattnig
Browse files

Added sample config.

parent f97261f0
No related branches found
No related tags found
No related merge requests found
import os
CONFIG_DIR = '/opt/aura/steering'
DB_CONFIG = 'steering.mysql.cnf'
SECRET_KEY = '---some-secred-key---'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'read_default_file': os.path.join(CONFIG_DIR, DB_CONFIG),
},
}
}
CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_WHITELIST = (
'http://localhost:8080'
# 'https://aura-test.o94.at',
# 'https://aura-test.o94.at:443',
)
CORS_ALLOW_HEADERS = list(default_headers) + [
'content-disposition',
]
# Uncomment this *after* you have initialized the DB with default tables and data:
#USE_TZ = False
# Comment out the following for temporary debugging, if you want to use the
# native DRF web forms
"""
REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
],
}
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment