Skip to content

Instantly share code, notes, and snippets.

@lu911
Created June 24, 2014 13:34
Show Gist options
  • Save lu911/9f587a1c2ed074399ba7 to your computer and use it in GitHub Desktop.
Save lu911/9f587a1c2ed074399ba7 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
from flask import Flask, request
from config import DefaultConfig
from extensions import db
def create_app(_config=DefaultConfig()):
app = Flask(__name__)
app.config.from_object(_config)
@app.route('/')
def hello_world():
return 'Hello World!'
print app.url_map
return app
def init_extensions(app):
db.init_app(app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment