Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update examples/hello.py #88

Closed
wants to merge 1 commit into from

2 participants

@smitty1eGH

(1) Fix import statement to read 'flask.ext.sqlalchemy'
(2) Add db.create_all()

Example now worky-worky.

@smitty1eGH smitty1eGH Update examples/hello.py
(1) Fix import statement to read 'flask.ext.sqlalchemy'
(2) Add db.create_all()

Example now worky-worky.
f537ff5
@mitsuhiko mitsuhiko closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 7, 2012
  1. @smitty1eGH

    Update examples/hello.py

    smitty1eGH authored
    (1) Fix import statement to read 'flask.ext.sqlalchemy'
    (2) Add db.create_all()
    
    Example now worky-worky.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  examples/hello.py
View
3  examples/hello.py
@@ -1,7 +1,7 @@
from datetime import datetime
from flask import Flask, request, flash, url_for, redirect, \
render_template, abort
-from flaskext.sqlalchemy import SQLAlchemy
+from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
@@ -57,4 +57,5 @@ def update_done():
if __name__ == '__main__':
+ db.create_all()
app.run()
Something went wrong with that request. Please try again.