Merge branch 'Auth'
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
from flask import request, Blueprint, render_template, session, redirect, url_for
|
from flask import request, Blueprint, render_template, session, redirect, url_for
|
||||||
from os import path
|
import os
|
||||||
from .auth_route import route
|
from .auth_route import route
|
||||||
from Database.sql_provider import SQLProvider
|
from Database.sql_provider import SQLProvider
|
||||||
import json
|
import json
|
||||||
|
|
||||||
sql_provider = SQLProvider(path.join(path.dirname(__file__), 'sql'))
|
sql_provider = SQLProvider(os.path.join(os.path.dirname(__file__), 'sql'))
|
||||||
auth_bp = Blueprint('auth_bp', __name__, template_folder='templates')
|
auth_bp = Blueprint('auth_bp', __name__, template_folder='templates')
|
||||||
|
db_config_path = os.path.join(os.path.dirname(__file__), os.pardir, 'Database/config.json')
|
||||||
|
|
||||||
with open(path.join(path.dirname(__file__), 'config.json')) as f:
|
with open(db_config_path) as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
|
||||||
@auth_bp.route('/', methods=['GET', 'POST'])
|
@auth_bp.route('/', methods=['GET', 'POST'])
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"host": "localhost",
|
|
||||||
"port": 3306,
|
|
||||||
"user": "manager",
|
|
||||||
"password": "ilikepizza",
|
|
||||||
"db": "sklad"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user