Commit 55fb8fb7 authored by Mathis Dedial's avatar Mathis Dedial
Browse files

Add SQLAlchemy config with setup script for local testing

parent bb5fe49f
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_pyfile('./config.py')
from app import routes
db = SQLAlchemy(app)
from app import routes
......@@ -2,8 +2,8 @@
Essential app configuration
'''
MYSQL_USERNAME = 'amivbruger'
MYSQL_PWD = 'notapassword'
MYSQL_USERNAME = 'amivburger'
MYSQL_PWD = 'amivburgerpassword'
MYSQL_HOST = 'localhost'
MYSQL_DB = 'amivburger'
......
-- Setup script for local testing
CREATE USER amivburger IDENTIFIED BY PASSWORD 'amivburgerpassword';
CREATE USER amivburger IDENTIFIED BY 'amivburgerpassword';
CREATE DATABASE amivburger;
GRANT ALL PRIVILEGES ON amivburger.* TO amivburger;
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