Commits

Anonymous committed 417a230

basic app all working

  • Participants
  • Parent commits 54c3e52

Comments (0)

Files changed (3)

 api_version: 1
 
 handlers:
-    - url: .*
-    script: app.py
+- url: .*
+  script: app.py

foodoptimizr/__init__.py

 from .views import main
 
 app = Flask(__name__)
-app.config_from_object(settings)
+app.config.from_object(settings)
 app.register_module(main)
 
 @app.before_request

foodoptimizr/views.py

 from flask import Module, render_template
 
-main = Module('main')
+main = Module('views.main')
 
 @main.route("/")
 def index():