Created
July 26, 2017 01:44
-
-
Save lpe234/bbded4d237fb7523ed9a3350c04c6346 to your computer and use it in GitHub Desktop.
flask config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: UTF-8 -*- | |
__author__ = 'lpe234' | |
""" | |
config module | |
""" | |
class Config(object): | |
""" | |
basic config | |
""" | |
CONFIG_NAME = None | |
DEBUG = False | |
# mongo | |
MONGO_HOST = 'localhost' | |
MONGO_PORT = 27017 | |
MONGO_DBNAME = 'lemon' | |
class ProductConfig(Config): | |
""" | |
product config | |
""" | |
pass | |
class DevelopConfig(Config): | |
""" | |
develop config | |
""" | |
pass | |
class Lupengdemacbookpro_localConfig(DevelopConfig): | |
""" | |
self config | |
""" | |
CONFIG_NAME = 'LupengConfig' | |
DEBUG = True | |
pass | |
class BogonConfig(Lupengdemacbookpro_localConfig): | |
""" | |
Bogon Fix | |
""" | |
pass | |
Author
lpe234
commented
Jul 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment