initial commit

This commit is contained in:
Mandel WebGUI Bot
2026-06-04 02:05:54 +02:00
commit 15b60cf57c
23 changed files with 578 additions and 0 deletions

View 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"

View File

View 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

View 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"

View 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"