forked from orbit-oss/flask
Add in a fixture utilizing app factory
This commit is contained in:
parent
8cf32bca51
commit
54b6fc8de6
6 changed files with 72 additions and 24 deletions
|
|
@ -1,3 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Flaskr
|
||||
~~~~~~
|
||||
|
||||
A microblog example application written as Flask tutorial with
|
||||
Flask and sqlite3.
|
||||
|
||||
:copyright: (c) 2015 by Armin Ronacher.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from flaskr.factory import create_app
|
||||
|
||||
app = create_app()
|
||||
|
|
@ -1,3 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Flaskr
|
||||
~~~~~~
|
||||
|
||||
A microblog example application written as Flask tutorial with
|
||||
Flask and sqlite3.
|
||||
|
||||
:copyright: (c) 2015 by Armin Ronacher.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
import os
|
||||
from flask import Flask, g
|
||||
from werkzeug.utils import find_modules, import_string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue