Add in a fixture utilizing app factory

This commit is contained in:
Kyle Lawlor 2017-04-02 11:55:05 -04:00
parent 8cf32bca51
commit 54b6fc8de6
6 changed files with 72 additions and 24 deletions

View file

@ -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()

View file

@ -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