entered wdipl in settings for wdipl
This commit is contained in:
@@ -18,6 +18,8 @@ if env_name == 'Production':
|
||||
from .production import * # noqa
|
||||
elif env_name == 'Staging':
|
||||
from .staging import * # noqa
|
||||
elif env_name == 'Wdipl':
|
||||
from .wdipl import * # noqa
|
||||
elif env_name == 'Development':
|
||||
from .development import * # noqa
|
||||
else:
|
||||
|
||||
76
goodtimes/settings/wdipl.py
Normal file
76
goodtimes/settings/wdipl.py
Normal file
@@ -0,0 +1,76 @@
|
||||
from .base import * # noqa
|
||||
from .base import env, BASE_DIR
|
||||
import os
|
||||
import colorlog
|
||||
|
||||
# from logging.handlers import TimedRotatingFileHandler
|
||||
|
||||
DEBUG = False
|
||||
ALLOWED_HOSTS = ["127.0.0.1", "goodtimes.betadelivery.com", "154.41.254.33"]
|
||||
|
||||
|
||||
# LOGGING_DIR = os.path.join(
|
||||
# BASE_DIR, "logs"
|
||||
# ) # Define the directory where log files will be stored
|
||||
|
||||
# Ensure the directory exists; create it if it doesn't
|
||||
# if not os.path.exists(LOGGING_DIR):
|
||||
# os.makedirs(LOGGING_DIR)
|
||||
|
||||
# LOGGING_LEVEL = env.str(
|
||||
# "LOG_LEVEL", "INFO"
|
||||
# ) # Set your desired log level (e.g., DEBUG, INFO, WARNING, ERROR) in the env file
|
||||
|
||||
|
||||
# LOGGING = {
|
||||
# "version": 1,
|
||||
# "disable_existing_loggers": False,
|
||||
# "formatters": {
|
||||
# "verbose": {
|
||||
# "()": colorlog.ColoredFormatter,
|
||||
# "format": "%(cyan)s%(asctime)s%(reset)s | %(red)s[%(levelname)8s]%(reset)s | [ %(yellow)s%(name)s.%(module)s:%(white)s%(lineno)d%(reset)s - %(green)s%(funcName)10s()%(reset)s ] --> %(message)s",
|
||||
# "datefmt": "%Y-%m-%d %H:%M:%S",
|
||||
# "log_colors": {
|
||||
# "DEBUG": "white",
|
||||
# "INFO": "green",
|
||||
# "WARNING": "yellow",
|
||||
# "ERROR": "red",
|
||||
# "CRITICAL": "bold_red",
|
||||
# },
|
||||
# "secondary_log_colors": {},
|
||||
# "style": "%",
|
||||
# }
|
||||
# },
|
||||
# "handlers": {
|
||||
# "logfile": {
|
||||
# "level": LOGGING_LEVEL,
|
||||
# "class": "logging.handlers.RotatingFileHandler",
|
||||
# "filename": os.path.join(LOGGING_DIR, "goodtimes_staging_error.log"),
|
||||
# 'maxBytes': 5242880, # 5*1024*1024 bytes (5MB)
|
||||
# "backupCount": 10, # Number of log files to keep (15 days' worth of logs)
|
||||
# "formatter": "verbose",
|
||||
# },
|
||||
# },
|
||||
# "loggers": {
|
||||
# "django": {
|
||||
# "handlers": ["logfile"],
|
||||
# "level": LOGGING_LEVEL,
|
||||
# "propagate": False,
|
||||
# },
|
||||
# },
|
||||
# }
|
||||
|
||||
# BASE_DOMAIN = "https://goodtimes.betadelivery.com"
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
||||
|
||||
|
||||
MEDIA_URL = "/media/"
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
||||
|
||||
# STATIC_ROOT = os.path.join(BASE_DIR, "static")
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
|
||||
STATICFILES_DIRS = [BASE_DIR.joinpath("static")]
|
||||
Reference in New Issue
Block a user