mirror of https://github.com/mitsuhiko/flask.git
Browse Source
- '== cond' to 'is cond' ex) app.templates_auto_reload == False to app.templates_auto_reload is False - Change about blank lines - Change field variable names intuitively - Change about blank lines - Change about continuation line's visual indent - Change about importationpull/2641/head
JoMingyu
7 years ago
5 changed files with 20 additions and 24 deletions
@ -1,8 +1,8 @@
|
||||
from flask import Flask |
||||
from blueprintapp.apps.admin import admin |
||||
from blueprintapp.apps.frontend import frontend |
||||
|
||||
app = Flask(__name__) |
||||
app.config['DEBUG'] = True |
||||
from blueprintapp.apps.admin import admin |
||||
from blueprintapp.apps.frontend import frontend |
||||
app.register_blueprint(admin) |
||||
app.register_blueprint(frontend) |
||||
|
@ -1,6 +1,7 @@
|
||||
from flask import Flask |
||||
app = Flask(__name__) |
||||
|
||||
|
||||
@app.route("/") |
||||
def hello(): |
||||
return "Hello World!" |
||||
|
Loading…
Reference in new issue