Acomodados packages para funcionar con gunicorn

This commit is contained in:
2020-11-19 03:15:09 -03:00
parent 5ff211c1db
commit 20c72e3af0
9 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
from flask import Flask
from start import services
from . import services
app = Flask(__name__)
app.config.from_object('start.settings')
app.config.from_object('home.settings')
@app.route('/currency')
def currency():
@@ -16,7 +16,6 @@ def weather():
def photos():
return services.photos.get(app.config['UNSPLASH_KEY'])
@app.route('/')
def hello_world():
return 'Hello, World!'

View File

@@ -0,0 +1 @@
from . import currency, photos, weather

View File

@@ -1,4 +0,0 @@
from . import weather
from . import currency
from . import photos

4
wsgi.py Normal file
View File

@@ -0,0 +1,4 @@
from home.entry import app
if __name__ == '__main__':
app.run()