Skip to content

Commit ddfedc0

Browse files
author
ExpDev07
committed
new
1 parent 18a5a9a commit ddfedc0

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

app/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
from flask import Flask
2+
from .settings import *
23

34
# Create the flask application.
45
app = Flask(__name__)
56

67
# Import assets, models, routes, etc.
7-
from . import routes
8+
from . import routes
9+
10+
# Run the application (server).
11+
if __name__ == 'main':
12+
app.run(port=PORT, threaded=True)

app/routes/latest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import requests
22
import functools
3-
from settings import *
43
from datetime import datetime
54
from app import app
5+
from ..settings import *
66

77
@app.route('/latest')
88
def latest():
File renamed without changes.

wsgi.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)