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"
|
||||
|
||||
db.init_app(app)
|
||||
admin.init_app(app)
|
||||
|
||||
app.register_blueprint(taquillas)
|
||||
app.register_blueprint(alquileres)
|
||||
@ -24,14 +25,10 @@ app.register_blueprint(retrasos)
|
||||
def index():
|
||||
return render_template("pagina_principal.html")
|
||||
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
admin.init_app(app)
|
||||
app.run(
|
||||
if __name__ == "__main__": app.run(
|
||||
host="0.0.0.0",
|
||||
port=5000,
|
||||
debug=True
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user