Skip to content

Commit

Permalink
[Issue #347] updated version and production settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ria-htkw committed Mar 31, 2024
1 parent 392fa2e commit b9cc50a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion koalixcrm/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

KOALIXCRM_VERSION = "1.13.dev11"
KOALIXCRM_VERSION = "1.13.0"
25 changes: 14 additions & 11 deletions projectsettings/settings/production_docker_postgres_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@
Django settings for koalixcrm project when used in productive environment.
"""

ALLOWED_HOSTS = ['*']
from .base_settings import *

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'modify_during_deployment'
SECRET_KEY = os.environ.get("SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = bool(os.environ.get("DEBUG", default=0))

# 'DJANGO_ALLOWED_HOSTS' should be a single string of hosts with a space between each.
# For example: 'DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]'
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(" ")

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'HOST': 'db',
'PORT': 5432,
"default": {
"ENGINE": os.environ.get("SQL_ENGINE", "django.db.backends.postgresql"),
"NAME": os.environ.get("SQL_DATABASE", BASE_DIR / "postgres"),
"USER": os.environ.get("SQL_USER", "postgres"),
"PASSWORD": os.environ.get("SQL_PASSWORD", "password"),
"HOST": os.environ.get("SQL_HOST", "localhost"),
"PORT": os.environ.get("SQL_PORT", "5432"),
}
}

Expand Down

0 comments on commit b9cc50a

Please sign in to comment.