Initialize Repo
This commit is contained in:
commit
01f03e5d4a
|
@ -0,0 +1,3 @@
|
|||
venv
|
||||
.vscode
|
||||
.env
|
|
@ -0,0 +1,25 @@
|
|||
import os
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
def create_app(test_config=None):
|
||||
|
||||
app = Flask(__name__, instance_relative_config=True)
|
||||
app.config.from_mapping(
|
||||
SECRET_KEY='dev',
|
||||
DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
|
||||
)
|
||||
|
||||
if test_config is None:
|
||||
# load the instance config, if it exists, when not testing
|
||||
app.config.from_pyfile('config.py', silent=True)
|
||||
else:
|
||||
# load the test config if passed in
|
||||
app.config.from_mapping(test_config)
|
||||
|
||||
# ensure the instance folder exists
|
||||
try:
|
||||
os.makedirs(app.instance_path)
|
||||
except OSError:
|
||||
pass
|
|
@ -0,0 +1 @@
|
|||
import os
|
|
@ -0,0 +1,14 @@
|
|||
click==8.0.3
|
||||
Flask==2.0.2
|
||||
flask-marshmallow==0.14.0
|
||||
Flask-SQLAlchemy==2.5.1
|
||||
greenlet==1.1.2
|
||||
itsdangerous==2.0.1
|
||||
Jinja2==3.0.2
|
||||
MarkupSafe==2.0.1
|
||||
marshmallow==3.14.0
|
||||
psycopg2==2.9.1
|
||||
six==1.16.0
|
||||
SQLAlchemy==1.4.26
|
||||
webargs==8.0.1
|
||||
Werkzeug==2.0.2
|
Reference in New Issue