Артур Галямов
2 years ago
3 changed files with 38 additions and 2 deletions
@ -1,7 +1,39 @@
|
||||
from os import path |
||||
from pathlib import Path |
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production! |
||||
DEBUG = False |
||||
# SECURITY WARNING: keep the secret key used in production secret! |
||||
SECRET_KEY = 'django-insecure-aaaa' |
||||
|
||||
SALT = 'aaaaaaaa' |
||||
ALLOWED_HOSTS = [] |
||||
ALLOWED_HOSTS = ['localhost'] |
||||
|
||||
CSRF_TRUSTED_ORIGINS = ['http://zakonvremeni.ru:8989',] |
||||
|
||||
LOG_DIR = path.join(Path(__file__).resolve().parent.parent.parent, 'logs/') |
||||
|
||||
LOGGING = { |
||||
'version': 1, |
||||
'disable_existing_loggers': False, |
||||
'formatters': { |
||||
'standard': { |
||||
'format': '%(asctime)s [%(levelname)s]- %(message)s' |
||||
} |
||||
}, |
||||
'handlers': { |
||||
'file': { |
||||
'level': 'ERROR', |
||||
'class': 'logging.FileHandler', |
||||
'filename': LOG_DIR + 'application.log', |
||||
'formatter': 'standard' |
||||
}, |
||||
}, |
||||
'loggers': { |
||||
'django': { |
||||
'handlers': ['file'], |
||||
'level': 'ERROR', |
||||
'propagate': True, |
||||
}, |
||||
}, |
||||
} |
||||
|
@ -1,11 +1,14 @@
|
||||
asgiref==3.5.2 |
||||
beautifulsoup4==4.11.1 |
||||
certifi==2022.12.7 |
||||
charset-normalizer==2.1.1 |
||||
Django==4.1.4 |
||||
django-bootstrap-v5==1.0.11 |
||||
django-dotenv==1.4.2 |
||||
idna==3.4 |
||||
ok-api==1.0.1 |
||||
requests==2.28.1 |
||||
soupsieve==2.3.2.post1 |
||||
sqlparse==0.4.3 |
||||
urllib3==1.26.13 |
||||
vk-api==11.9.9 |
||||
|
Loading…
Reference in new issue