Permalink
Browse files

syncdb

  • Loading branch information...
1 parent 506aba8 commit f5f2727c0e24cd91762fb0101b95c8e9cb905e7a @kennethreitz kennethreitz committed Mar 26, 2012
Showing with 6 additions and 5 deletions.
  1. +4 −3 manage.py
  2. +2 −2 springcreek/core.py
View
@@ -4,15 +4,16 @@
from flaskext.script import Manager
from flask.ext.celery import install_commands as install_celery
-from springcreek import app
+from springcreek import app, db
manager = Manager(app)
install_celery(manager)
@manager.command
-def hello():
- print "hello"
+def syncdb():
+ """Initializes the database."""
+ db.create_all()
if __name__ == "__main__":
View
@@ -35,13 +35,13 @@
@app.route('/')
-@auth.required
+# @auth.required
def landing_page():
return render_template('index.html')
@app.route('/')
-@auth.required
+# @auth.required
def builds_page():
return render_template('index.html')

0 comments on commit f5f2727

Please sign in to comment.