Ejemplo n.º 1
0
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/

This file has been adjusted to espressodb settings.
"""
import os

from espressodb.management.utilities.files import get_project_settings
from espressodb.management.utilities.files import get_db_config
from espressodb.management.utilities.files import ESPRESSO_DB_ROOT

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ROOT_DIR = os.path.dirname(BASE_DIR)

_SETTINGS = get_project_settings(ROOT_DIR)
SECRET_KEY = _SETTINGS.get("SECRET_KEY")
PROJECT_APPS = _SETTINGS.get("PROJECT_APPS", [])
ALLOWED_HOSTS = _SETTINGS.get("ALLOWED_HOSTS", [])
DEBUG = _SETTINGS.get("DEBUG", False)

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

# Application definition

INSTALLED_APPS = (PROJECT_APPS + [
    "espressodb.base",
    "espressodb.documentation",
    "espressodb.management",
    "espressodb.notifications",
Ejemplo n.º 2
0
https://docs.djangoproject.com/en/3.0/ref/settings/

This file has been adjusted to espressodb settings.
"""
import os

from espressodb.management.utilities.files import get_project_settings
from espressodb.management.utilities.files import get_db_config
from espressodb.management.utilities.files import ESPRESSO_DB_ROOT

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ROOT_DIR = os.path.dirname(BASE_DIR)
CONFIG_DIR = os.path.join(ROOT_DIR, "app")

_SETTINGS = get_project_settings(CONFIG_DIR)
SECRET_KEY = _SETTINGS.get("SECRET_KEY")
PROJECT_APPS = _SETTINGS.get("PROJECT_APPS", [])
ALLOWED_HOSTS = _SETTINGS.get("ALLOWED_HOSTS", [])
DEBUG = _SETTINGS.get("DEBUG", False)

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/

# Application definition

INSTALLED_APPS = (PROJECT_APPS + [
    "espressodb.base",
    "espressodb.documentation",
    "espressodb.management",
    "espressodb.notifications",
Ejemplo n.º 3
0
https://docs.djangoproject.com/en/2.2/ref/settings/
"""

import os

from espressodb.management.utilities.files import get_project_settings
from espressodb.management.utilities.files import get_db_config
from espressodb.management.utilities.files import ESPRESSO_DB_ROOT

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ROOT_DIR = os.path.dirname(BASE_DIR)

_SETTINGS_DIR = os.environ.get("LATTEDB_ROOT_DIR", ROOT_DIR)

_SETTINGS = get_project_settings(_SETTINGS_DIR)
SECRET_KEY = _SETTINGS.get("SECRET_KEY")
PROJECT_APPS = _SETTINGS.get("PROJECT_APPS", [])
ALLOWED_HOSTS = _SETTINGS.get("ALLOWED_HOSTS", [])
DEBUG = _SETTINGS.get("DEBUG", False)

INSTALLED_APPS = (PROJECT_APPS + [
    "espressodb.base",
    "espressodb.documentation",
    "espressodb.management",
    "espressodb.notifications",
] + [
    "bootstrap4",
    "widget_tweaks",
    "django_extensions",
    "rest_framework",