blob: 9b262128e1a8e3189bfff9c2e9b65c22bdc82535 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
from app import app, db
from flask.ext.script import Manager
manager = Manager(app)
@manager.command
def create():
db.create_all()
@manager.command
def drop():
db.drop_all()
@manager.command
def compile():
"""Compiles all templates."""
app.jinja_env.compile_templates('comp', zip = None)
if __name__ == "__main__":
manager.run(default_command="runserver")
|