Update main.py
This commit is contained in:
parent
7a33f360cf
commit
895f6a97cf
7
main.py
7
main.py
@ -15,6 +15,7 @@ app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///project.db"
|
|||||||
app.secret_key = "hola"
|
app.secret_key = "hola"
|
||||||
|
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
|
admin.init_app(app)
|
||||||
|
|
||||||
app.register_blueprint(taquillas)
|
app.register_blueprint(taquillas)
|
||||||
app.register_blueprint(alquileres)
|
app.register_blueprint(alquileres)
|
||||||
@ -24,14 +25,10 @@ app.register_blueprint(retrasos)
|
|||||||
def index():
|
def index():
|
||||||
return render_template("pagina_principal.html")
|
return render_template("pagina_principal.html")
|
||||||
|
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
|
||||||
|
if __name__ == "__main__": app.run(
|
||||||
if __name__ == "__main__":
|
|
||||||
admin.init_app(app)
|
|
||||||
app.run(
|
|
||||||
host="0.0.0.0",
|
host="0.0.0.0",
|
||||||
port=5000,
|
port=5000,
|
||||||
debug=True
|
debug=True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user