Setup a basic flask-admin interface

This commit is contained in:
Pierre Jaury
2016-02-20 13:57:26 +01:00
parent 9df197f412
commit a5ffcfdc90
13 changed files with 104 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
# Create application
app = Flask(__name__)
app.config.update({
'SQLALCHEMY_DATABASE_URI': 'sqlite:////tmp/freeposte.db'
})
# Create the database
db = SQLAlchemy(app)
from freeposte import views