Commit 0941cc64 authored by Andrea Veri's avatar Andrea Veri
Browse files

Replace database configuration with GNOME production one. Make also sure...

Replace database configuration with GNOME production one. Make also sure variables are defined there, we're going to replace them during container's creation
parent 6e0fb53a
...@@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ...@@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '-j!!nz65g))c!_p1q65=4%93!x_wg(nb)%-n_88bz**re&!+5r' SECRET_KEY = 'ENV_DJANGO_SECRET_KEY'
# 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
...@@ -38,7 +38,7 @@ INSTALLED_APPS = [ ...@@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django.contrib.sites', 'django.contrib.sites',
'cms', 'cms',
...@@ -48,7 +48,7 @@ INSTALLED_APPS = [ ...@@ -48,7 +48,7 @@ INSTALLED_APPS = [
'filer', 'filer',
'easy_thumbnails', 'easy_thumbnails',
'mptt', 'mptt',
'djangocms_link', 'djangocms_link',
'djangocms_file', 'djangocms_file',
'djangocms_picture', 'djangocms_picture',
...@@ -56,7 +56,7 @@ INSTALLED_APPS = [ ...@@ -56,7 +56,7 @@ INSTALLED_APPS = [
'djangocms_snippet', 'djangocms_snippet',
'djangocms_style', 'djangocms_style',
'djangocms_column', 'djangocms_column',
'djangocms_text_ckeditor', 'djangocms_text_ckeditor',
'djangocms_admin_style', 'djangocms_admin_style',
...@@ -74,7 +74,7 @@ MIDDLEWARE = [ ...@@ -74,7 +74,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.locale.LocaleMiddleware', 'django.middleware.locale.LocaleMiddleware',
'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.page.CurrentPageMiddleware',
...@@ -112,11 +112,13 @@ WSGI_APPLICATION = 'devportal.wsgi.application' ...@@ -112,11 +112,13 @@ WSGI_APPLICATION = 'devportal.wsgi.application'
# Database # Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases # https://docs.djangoproject.com/en/1.11/ref/settings/#databases
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.mysql',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': 'developerportal',
'USER': 'developerportal',
'PASSWORD': 'ENV_DB_PASSWORD',
'HOST': 'ENV_DB_HOST',
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment