mirror of
https://github.com/kennethreitz/curated-nodes.git
synced 2026-06-05 23:20:20 +00:00
18 lines
270 B
Python
Executable File
18 lines
270 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from flask.ext.script import Manager
|
|
|
|
from nodes import app, db
|
|
|
|
|
|
manager = Manager(app)
|
|
|
|
@manager.command
|
|
def syncdb():
|
|
"""Initializes the database."""
|
|
db.create_all()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
manager.run() |