Small fixes to improve project stability
This commit is contained in:
parent
843b2b6e55
commit
4bb81de1e4
2 changed files with 6 additions and 30 deletions
|
|
@ -2,8 +2,6 @@ import socket
|
|||
from pathlib import Path
|
||||
import environ
|
||||
import os
|
||||
import logging
|
||||
import sys
|
||||
|
||||
env = environ.Env(
|
||||
DEBUG=(bool, False)
|
||||
|
|
@ -29,31 +27,6 @@ RESEND_API_KEY = env('RESEND_API_KEY')
|
|||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = env('DEBUG')
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
'formatters': {
|
||||
'verbose': {
|
||||
'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
||||
},
|
||||
},
|
||||
'handlers': {
|
||||
'console': {
|
||||
'level': 'WARN',
|
||||
'class': 'logging.StreamHandler',
|
||||
'stream': sys.stdout,
|
||||
'formatter': 'verbose'
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
'': {
|
||||
'handlers': ['console'],
|
||||
'level': 'WARN',
|
||||
'propagate': True,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
||||
ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue