init project

This commit is contained in:
alphardex
2019-01-16 22:45:05 +08:00
commit d9f4136fa4
32 changed files with 1044 additions and 0 deletions

32
rsshub/config.py Normal file
View File

@@ -0,0 +1,32 @@
import os
import sys
basedir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
class BaseConfig:
SITE_NAME = 'RSSHub'
GITHUB_USERNAME = 'alphardex'
EMAIL = '2582347430@qq.com'
SECRET_KEY = os.environ.get('SECRET_KEY') or 'f43hrt53et53'
DEBUG_TB_INTERCEPT_REDIRECTS = False
class DevelopmentConfig(BaseConfig):
pass
class TestingConfig(BaseConfig):
TESTING = True
class ProductionConfig(BaseConfig):
pass
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig
}