Coverage for demo_server/settings.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2026-10-07 05:12 +0000

1# Copyright (c) Microsoft Corporation. 

2# Licensed under the MIT License. 

3 

4import os 

5 

6FLASK_SERVER_NAME = f"0.0.0.0:{os.environ['PORT']}" 

7FLASK_DEBUG = True # Do not use debug mode in production 

8 

9# Flask-Restplus settings 

10RESTPLUS_SWAGGER_UI_DOC_EXPANSION = 'list' 

11RESTPLUS_VALIDATE = True 

12RESTPLUS_MASK_SWAGGER = False 

13RESTPLUS_ERROR_404_HELP = False 

14 

15# SQLAlchemy settings 

16SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite' 

17SQLALCHEMY_TRACK_MODIFICATIONS = False