Merge branch 'dev-denzel' into test
This commit is contained in:
commit
d5e0375549
2 files changed
+26
No files matched your search
@@ -0,0 +1,25 @@
|
||||
from datetime import timedelta
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
|
||||
load_dotenv(dotenv_path)
|
||||
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': str(os.getenv('ENGINE')),
|
||||
'NAME': str(os.getenv('DBNAME')),
|
||||
'USER': str(os.getenv('USER')),
|
||||
'PASSWORD': str(os.getenv('PASSWORD')),
|
||||
'HOST': str(os.getenv('HOST')),
|
||||
'PORT': str(os.getenv('PORT')),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pass
|
||||
@@ -24,6 +24,7 @@ SECRET_KEY=stngs.secret_key
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
myDEBUG=True
|
||||
|
||||
SWAGGER_SETTINGS = {
|
||||
'DEFAULT_INFO': 'import.path.to.urls.api_info',
|
||||
'SECURITY_DEFINITIONS': {
|
||||
|
||||
Reference in new issue
Block a user