initial commit
This commit is contained in:
0
customer_zero_test_r10/settings/__init__.py
Normal file
0
customer_zero_test_r10/settings/__init__.py
Normal file
36
customer_zero_test_r10/settings/base.py
Normal file
36
customer_zero_test_r10/settings/base.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""
|
||||
Django settings for de tilde project.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/2.0/topics/settings/
|
||||
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/2.0/ref/settings/
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from configtype.jsonconfig import setup_search_paths
|
||||
|
||||
_project_app_path = Path(__file__).parent.parent
|
||||
BASE_PATH = _project_app_path.parent
|
||||
BASE_DIR = str(BASE_PATH)
|
||||
|
||||
setup_search_paths("/etc/ocyan/", str(_project_app_path))
|
||||
|
||||
from ocyan.main.settings import * # pylint:disable=W0401,W0614
|
||||
|
||||
INSTALLED_APPS = ["customer_zero_test_r10"] + INSTALLED_APPS
|
||||
|
||||
STATIC_ROOT = str(BASE_PATH / "static")
|
||||
MEDIA_ROOT = str(BASE_PATH / "media")
|
||||
PRIVATE_MEDIA_ROOT = str(BASE_PATH / "private")
|
||||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": str(BASE_PATH / "db.sqlite3"),
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = "6vyun7z7l^ndp#=y%%r8%jkx=c#f%-+(vqe@y*ght-ydlly)@y"
|
||||
0
customer_zero_test_r10/settings/env/__init__.py
vendored
Normal file
0
customer_zero_test_r10/settings/env/__init__.py
vendored
Normal file
21
customer_zero_test_r10/settings/env/dev.py
vendored
Normal file
21
customer_zero_test_r10/settings/env/dev.py
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
from ..base import * # pylint:disable=W0401,W0614
|
||||
|
||||
try:
|
||||
from customer_zero_test_r10.json import * # pylint:disable=W0401,W0614,E0611,E0401
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
DEBUG = False
|
||||
STATIC_ROOT = "/srv/www/customer_zero_test_r10/static/"
|
||||
MEDIA_ROOT = "/srv/www/customer_zero_test_r10/media/"
|
||||
PRIVATE_MEDIA_ROOT = "/srv/www/customer_zero_test_r10/private/"
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
# Force mail to console
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
|
||||
EDEN_URL = ["https://search.mandelblog.com:9200"]
|
||||
# pylint: disable=E0602
|
||||
WAGTAILSEARCH_BACKENDS["default"]["URLS"] = EDEN_URL
|
||||
OSCAR_ELASTICSEARCH_SERVER_URLS = EDEN_URL
|
||||
15
customer_zero_test_r10/settings/env/prd.py
vendored
Normal file
15
customer_zero_test_r10/settings/env/prd.py
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
from ..base import * # pylint:disable=W0401,W0614
|
||||
|
||||
try:
|
||||
from customer_zero_test_r10.json import * # pylint:disable=W0401,W0614,E0611,E0401
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
DEBUG = False
|
||||
STATIC_ROOT = "/srv/www/customer_zero_test_r10/static/"
|
||||
MEDIA_ROOT = "/srv/www/customer_zero_test_r10/media/"
|
||||
PRIVATE_MEDIA_ROOT = "/srv/www/customer_zero_test_r10/private/"
|
||||
ALLOWED_HOSTS.append("customer_zero_test_r10.%s" % salt_target) # pylint: disable=E0602
|
||||
# pylint: disable=E0602
|
||||
WAGTAILSEARCH_BACKENDS["default"]["URLS"] = ["https://search.mandelblog.com:9200"]
|
||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||
16
customer_zero_test_r10/settings/env/stg.py
vendored
Normal file
16
customer_zero_test_r10/settings/env/stg.py
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
from ..base import * # pylint:disable=W0401,W0614
|
||||
|
||||
try:
|
||||
from customer_zero_test_r10.json import * # pylint:disable=W0401,W0614,E0611,E0401
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
DEBUG = False
|
||||
STATIC_ROOT = "/srv/www/customer_zero_test_r10/static/"
|
||||
MEDIA_ROOT = "/srv/www/customer_zero_test_r10/media/"
|
||||
PRIVATE_MEDIA_ROOT = "/srv/www/customer_zero_test_r10/private/"
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
# Force mail to console
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
Reference in New Issue
Block a user