try to package...
This commit is contained in:
parent
2452409898
commit
6547bf9d9c
@ -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)
|
|
@ -1 +0,0 @@
|
|||||||
import oshipka
|
|
7
src/oshipka.py
Normal file
7
src/oshipka.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from oshipka import init_db
|
||||||
|
from oshipka import app
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
init_db(app)
|
||||||
|
|
||||||
|
app.run(debug=True)
|
@ -0,0 +1,3 @@
|
|||||||
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
|
|
||||||
|
db = SQLAlchemy()
|
@ -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()
|
|
@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE
|
from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE
|
||||||
from oshipka.persistance.models import db
|
from oshipka.persistance import db
|
||||||
|
|
||||||
|
|
||||||
def populate_db(app):
|
def populate_db(app):
|
||||||
|
Loading…
Reference in New Issue
Block a user