Skip to content

Commit

Permalink
auto-config
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffVandrewJr committed Jan 14, 2019
1 parent 7657f49 commit 2ad64e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,17 @@ def load_mail():

# tasks
from app import tasks

# load before first request fns
from app.utils import load_config
load_config(
url='http://' + app.config['SERVER_NAME'],
app=app,
)

return app


from app import admin_views
from app import models, subscriptions

5 changes: 0 additions & 5 deletions patron.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
from app.email import send_reminder_emails
from app.models import User, BTCPayClientStore, PriceLevel, \
ThirdPartyServices, Email
from app.utils import load_config
from datetime import datetime, timedelta
from flask_blogging_patron.signals import editor_post_saved

app = create_app()
load_config(
url='http://' + app.config['SERVER_NAME'],
app=app,
)


if __name__ == '__main__':
Expand Down

0 comments on commit 2ad64e3

Please sign in to comment.