Commit 81e21d3e authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Add creator layout

parent fc1a4d3b
__pycache__/
node_modules/
venv/
.vscode/
......
from flask import Flask
from .models import db
from flask_simpleldap import LDAP
app = Flask(__name__)
app.config.from_pyfile('./config.py')
ldap = LDAP(app)
# Bind SQLAlchemy to Flask app
db.init_app(app)
......
......@@ -11,4 +11,6 @@ SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{}:{}@{}/{}'.format(MYSQL_USERNAME, M
# Suppress deprecation warning
SQLALCHEMY_TRACK_MODIFICATIONS = False
LDAP_KEY = 'notarealkey'
LDAP_BASE_DN = 'OU=users,dc=example,dc=org'
LDAP_USERNAME = 'CN=user,OU=Users,DC=example,DC=org'
LDAP_PASSWORD = 'notarealpassword'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment