Skip to content
Permalink
Browse files

auto-config

  • Loading branch information...
JeffVandrewJr committed Jan 14, 2019
1 parent 7657f49 commit 2ad64e34bfb3237e4aa85a37254946b24ae2fc78
Showing with 8 additions and 5 deletions.
  1. +8 −0 app/__init__.py
  2. +0 −5 patron.py
@@ -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

@@ -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__':

0 comments on commit 2ad64e3

Please sign in to comment.
You can’t perform that action at this time.