Setup a basic flask-admin interface
This commit is contained in:
16
admin/freeposte/__init__.py
Normal file
16
admin/freeposte/__init__.py
Normal 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
|
||||
Reference in New Issue
Block a user