github.com/jincm/wesharechain@v0.0.0-20210122032815-1537409ce26a/server/block/settings.py (about) 1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 import os.path 4 import logging 5 6 STATIC_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)), 'static') 7 TEMPLATES_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)), 'templates') 8 9 default_settings = { 10 'base_url': '/', 11 'view_prefix': '/block', 12 'api_version': 'v1.0', 13 'enabled_methods': ['get', 'post', 'put', 'patch', 'delete'], 14 'log_info': "./log/block_info.log", 15 'log_error': "./log/block_error.log", 16 'static_path': STATIC_PATH, 17 'commodity_path': '/image/commodity/' 18 } 19 20 models = [] 21 22 Debug = False 23 24 if Debug: 25 logging.basicConfig(level=logging.DEBUG)