OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / tools / side_chain_tool / config.py
diff --git a/tools/side_chain_tool/config.py b/tools/side_chain_tool/config.py
deleted file mode 100644 (file)
index ecc7f14..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding:utf-8 -*-
-import os
-basedir = os.path.abspath(os.path.dirname(__file__))
-
-class Config:
-    SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
-    SECURITY_PASSWORD_SALT = os.environ.get('SECURITY_PASSWORD_SALT') or 'hard to guess string'
-    SSL_DISABLE = False
-    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
-    SQLALCHEMY_RECORD_QUERIES = True
-    POSTS_PER_PAGE = os.environ.get('POSTS_PER_PAGE')
-    FLASKY_SLOW_DB_QUERY_TIME = 0.5
-
-    @staticmethod
-    def init_app(app):
-        pass
-
-# 生产坏境
-class DevelopmentConfig(Config):
-    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
-                              'sqlite:///' + os.path.join(basedir, 'data.sqlite')
-
-
-
-conifg = {
-    'default': DevelopmentConfig
-}
\ No newline at end of file