try to package...

This commit is contained in:
Daniel Tsvetkov 2020-03-18 11:14:47 +01:00
parent 2452409898
commit 6547bf9d9c
6 changed files with 11 additions and 17 deletions

View File

@ -1,7 +0,0 @@
from oshipka.persistance import init_db
from oshipka.webapp import app
if __name__ == "__main__":
init_db(app)
app.run(debug=True)

View File

@ -1 +0,0 @@
import oshipka

7
src/oshipka.py Normal file
View File

@ -0,0 +1,7 @@
from oshipka import init_db
from oshipka import app
if __name__ == "__main__":
init_db(app)
app.run(debug=True)

View File

@ -0,0 +1,3 @@
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()

View File

@ -1,8 +0,0 @@
import json
import os
from flask import render_template, request
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_utils import ChoiceType
db = SQLAlchemy()

View File

@ -1,7 +1,7 @@
import os
from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE
from oshipka.persistance.models import db
from oshipka.persistance import db
def populate_db(app):