adding deps and realizing the file structure
This commit is contained in:
parent
576110dd73
commit
7a454d7bd5
|
@ -1,5 +1,9 @@
|
|||
import os
|
||||
import click
|
||||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
@ -22,4 +26,8 @@ def create_app(test_config=None):
|
|||
try:
|
||||
os.makedirs(app.instance_path)
|
||||
except OSError:
|
||||
pass
|
||||
pass
|
||||
|
||||
from . import db
|
||||
db.init_app()
|
||||
click.echo("Initialized the Database.")
|
|
@ -1 +1,3 @@
|
|||
import os
|
||||
import os
|
||||
|
||||
SQLALCHEMY_DATABASE_URI=os.getenv('SQLALCHEMY_DATABASE_URI')
|
|
@ -0,0 +1,6 @@
|
|||
import click
|
||||
import psycopg2
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask import current_app, g
|
||||
from flask.cli import with_appcontext
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
|
@ -184,6 +184,8 @@ Mako==1.1.5
|
|||
Markdown==3.3.4
|
||||
Markups==3.1.2
|
||||
MarkupSafe==1.1.1
|
||||
marshmallow==3.14.0
|
||||
marshmallow-sqlalchemy==0.26.1
|
||||
matplotlib==3.4.3
|
||||
matplotlib-inline==0.1.2
|
||||
mccabe==0.6.1
|
||||
|
|
Reference in New Issue