Skip to content
Snippets Groups Projects
Commit 6dba3dc1 authored by Michal Cyprian's avatar Michal Cyprian
Browse files

Small settings changes to make local development smooth

parent 6ec297ab
Branches
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ SECRET_KEY = '5^#15wdl(qll2ue&&(-1ixwalo7%td1a(&x7abp(roabe_mk7w' ...@@ -28,7 +28,7 @@ SECRET_KEY = '5^#15wdl(qll2ue&&(-1ixwalo7%td1a(&x7abp(roabe_mk7w'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['localhost'] ALLOWED_HOSTS = ['*']
# Application definition # Application definition
...@@ -40,6 +40,7 @@ INSTALLED_APPS = [ ...@@ -40,6 +40,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'hello',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
...@@ -57,7 +58,7 @@ ROOT_URLCONF = 'myapp.urls' ...@@ -57,7 +58,7 @@ ROOT_URLCONF = 'myapp.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'hello/templates')], 'DIRS': [],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
...@@ -124,7 +125,9 @@ STATIC_URL = '/static/' ...@@ -124,7 +125,9 @@ STATIC_URL = '/static/'
# Import some Platform.sh settings from the environment. # Import some Platform.sh settings from the environment.
STATIC_ROOT = os.path.join(os.getenv('PLATFORM_APP_DIR'), 'static') app_dir = os.getenv('PLATFORM_APP_DIR')
if app_dir:
STATIC_ROOT = os.path.join(app_dir, 'static')
entropy = os.getenv('PLATFORM_PROJECT_ENTROPY') entropy = os.getenv('PLATFORM_PROJECT_ENTROPY')
if entropy: if entropy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment