|
|
|
@ -11,21 +11,22 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
|
|
|
|
|
""" |
|
|
|
|
import os |
|
|
|
|
from pathlib import Path |
|
|
|
|
from dotenv import load_dotenv |
|
|
|
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'. |
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production |
|
|
|
|
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ |
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret! |
|
|
|
|
SECRET_KEY = 'django-insecure-13x&cmg=f1gx9u(i@s(xplh+4x=+@ucyujcqf2t3hu7@i(k=fe' |
|
|
|
|
load_dotenv() |
|
|
|
|
SECRET_KEY = os.getenv('SECRET_KEY') |
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production! |
|
|
|
|
DEBUG = True |
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = [] |
|
|
|
|
ALLOWED_HOSTS = ['127.0.0.1', 'mirocod.svo.ru'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition |
|
|
|
@ -106,7 +107,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
|
# Internationalization |
|
|
|
|
# https://docs.djangoproject.com/en/4.1/topics/i18n/ |
|
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'en-us' |
|
|
|
|
LANGUAGE_CODE = 'ru' |
|
|
|
|
|
|
|
|
|
TIME_ZONE = 'UTC' |
|
|
|
|
|
|
|
|
|