Merge pull request 'downgrade' (#35) from downgrade into master
Reviewed-on: http://pulsdel.ru/ZakonVremeni/crossposting/pulls/35
This commit is contained in:
commit
f64b60bffa
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,4 +5,5 @@ db.sqlite3
|
||||
__pycache__/
|
||||
identifier.sqlite
|
||||
vk_config.v2.json
|
||||
crossposting_backend/private/settings.py
|
||||
crossposting_backend/private/settings.py
|
||||
logs/
|
@ -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…
x
Reference in New Issue
Block a user