Changed config.py
Table and schema names can now be configured in .env file
This commit is contained in:
@ -11,8 +11,8 @@ if config.enable_api_docs:
|
|||||||
else:
|
else:
|
||||||
docs_url = None
|
docs_url = None
|
||||||
|
|
||||||
schema_name = 'harticle'
|
schema_name = config.schema_name
|
||||||
table_name = 'articles'
|
table_name = config.table_name
|
||||||
|
|
||||||
|
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
|
|||||||
@ -8,3 +8,5 @@ host_name = config('HOST_NAME')
|
|||||||
port = config('PORT')
|
port = config('PORT')
|
||||||
logging_level = config('LOGGING_LEVEL')
|
logging_level = config('LOGGING_LEVEL')
|
||||||
enable_api_docs = config('ENABLE_API_DOCS', cast=bool)
|
enable_api_docs = config('ENABLE_API_DOCS', cast=bool)
|
||||||
|
schema_name = config('SCHEMA_NAME')
|
||||||
|
table_name = config('TABLE_NAME')
|
||||||
Reference in New Issue
Block a user