Changes Flask initalization.

This commit is contained in:
alshain committed 2011-02-10 21:18:55 +01:00
1 parent aa0c2f471a
commit 34acf6f225
2 files changed
+9 -8

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
"""Couchpotato."""
from flask import Flask
app = Flask(__name__)
+5 -8
View File
@@ -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)