This commit is contained in:
Nukeap committed 2024-10-15 12:53:30 +03:00
1 parent b58db78b71
commit d7f18323ad
4 files changed
+3

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
from datetime import timedelta
class Settings():
def __init__(self) -> None:
self.secret_key='V7bvDZMztr3EU8S9g1Dipw'
self.redis_hosts = [("127.0.0.1", 6379)]
self.access_token_lifetime = timedelta(minutes=480)
self.refresh_token_lifetime = timedelta(days=1)
self.db = {
'default':{
'ENGINE': 'django.db.backends.mysql',
'NAME': 'accounting',
'USER': 'root',
'PASSWORD': 'ADMIN',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}
pass