Acomodados packages para funcionar con gunicorn
This commit is contained in:
@@ -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!'
|
||||
1
home/services/__init__.py
Normal file
1
home/services/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import currency, photos, weather
|
||||
@@ -1,4 +0,0 @@
|
||||
from . import weather
|
||||
from . import currency
|
||||
from . import photos
|
||||
|
||||
Reference in New Issue
Block a user