Changes Flask initalization.
This commit is contained in:
1 parent
aa0c2f471a
commit
34acf6f225
2 files changed
+9
-8
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
"""Couchpotato."""
|
||||||
|
from flask import Flask
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
+5
-8
@@ -1,11 +1,8 @@
|
|||||||
from flask import Flask
|
from couchpotato import app
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
def cmd_couchpotato():
|
def cmd_couchpotato():
|
||||||
app = Flask(__name__)
|
"""Commandline entry point."""
|
||||||
|
# Make sure views are imported and registered.
|
||||||
# @app.route("/")
|
import couchpotato.views
|
||||||
# def hello():
|
app.run(debug=True)
|
||||||
# return "Hello World!"
|
|
||||||
|
|
||||||
app.run(debug = True)
|
|
||||||
Reference in new issue
Block a user