<filename>webtool/config/settings/production.py<gh_stars>10-100
from .base import *

try:
    from .admin import *
except ModuleNotFoundError:
    ADMINS = []
    pass

DEBUG = False

USE_X_FORWARDED_HOST = False
USE_X_FORWARDED_PORT = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

ALLOWED_HOSTS = ['webtool.dav-kempten.de', '192.168.127.12']

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')
    # '/usr/local/lib/python3.6/site-packages/django/contrib/admin/static',
]

CORS_ORIGIN_ALLOW_ALL = False

CORS_URLS_REGEX = r'^/api/.*$'

CORS_ORIGIN_WHITELIST = (
    'www.dav-kempten.de',
    'www.dav-kempten-neue-hoempage.de',
    'dav-kempten-neue-hoempage.de',
    'dav-kempten.de',
)

CSRF_TRUSTED_ORIGINS = ['.dav-kempten.de']
CSRF_COOKIE_SECURE = True

STATIC_ROOT = '/var/www/webtool/static'

STATIC_URL = '/static/'

<filename>webtool/config/settings/production.py<gh_stars>10-100
from .base import *

try:
    from .admin import *
except ModuleNotFoundError:
    ADMINS = []
    pass

DEBUG = False

USE_X_FORWARDED_HOST = False
USE_X_FORWARDED_PORT = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

ALLOWED_HOSTS = ['webtool.dav-kempten.de', '192.168.127.12']

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')
    # '/usr/local/lib/python3.6/site-packages/django/contrib/admin/static',
]

CORS_ORIGIN_ALLOW_ALL = False

CORS_URLS_REGEX = r'^/api/.*$'

CORS_ORIGIN_WHITELIST = (
    'www.dav-kempten.de',
    'www.dav-kempten-neue-hoempage.de',
    'dav-kempten-neue-hoempage.de',
    'dav-kempten.de',
)

CSRF_TRUSTED_ORIGINS = ['.dav-kempten.de']
CSRF_COOKIE_SECURE = True

STATIC_ROOT = '/var/www/webtool/static'

STATIC_URL = '/static/'

# '/usr/local/lib/python3.6/site-packages/django/contrib/admin/static',