Minor fixes in config structure

master
Andriy Kushnir (Orhideous) 2015-06-04 01:58:15 +03:00
parent 07082246fe
commit e3c527ccbe
3 changed files with 3 additions and 7 deletions

2
.gitignore vendored
View File

@ -121,3 +121,5 @@ crashlytics.properties
crashlytics-build.properties
imgtohttps/settings.py

View File

@ -21,7 +21,7 @@ EXCEPTIONS = (
)
app = Flask(__name__)
app.config.from_object(environ.get('APP_SETTINGS', 'config.Development'))
app.config.from_object(environ.get('APP_SETTINGS', 'settings.Development'))
storage.init_app(app)
app.imgur_client = ImgurClient(app.config['IMGUR_CLIENT_ID'], app.config['IMGUR_CLIENT_SECRET'])

View File

@ -4,9 +4,3 @@ class Config:
REDIS_URL = None
IMGUR_CLIENT_ID = ''
IMGUR_CLIENT_SECRET = ''
class Development(Config):
DEBUG = True
JSONIFY_PRETTYPRINT_REGULAR = True
REDIS_URL = 'redis://localhost:6379/0'