mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-17 00:05:51 +00:00
16 lines
364 B
Python
16 lines
364 B
Python
from flask import Flask
|
|
from config import Config
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
from flask_migrate import Migrate
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_object(Config)
|
|
|
|
# Puestos fuera del tutorial
|
|
app.jinja_env.auto_reload = True
|
|
app.config["TEMPLATES_AUTO_RELOAD"] = True
|
|
db = SQLAlchemy(app)
|
|
migrate = Migrate(app, db)
|
|
|
|
from app import routes, models
|