Code source de Planète Casio https://planet-casio.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
479B

  1. from flask import Flask
  2. from flask_sqlalchemy import SQLAlchemy
  3. from flask_migrate import Migrate
  4. from flask_login import LoginManager
  5. from config import Config
  6. app = Flask(__name__)
  7. app.config.from_object(Config)
  8. db = SQLAlchemy(app)
  9. migrate = Migrate(app, db)
  10. login = LoginManager(app)
  11. login.login_view = 'login'
  12. login.login_message = "Veuillez vous authentifier avant de continuer."
  13. from app import models
  14. from app.routes import index, login, search, account, admin, users