Izmenjen templates folder tako da bude modularniji #4
@ -4,11 +4,11 @@ from taskmanager.functions import *
|
|||||||
from taskmanager.models import *
|
from taskmanager.models import *
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
CONFIG_PATH = "/home/bob/kod-foss/taskmanager/taskmanager/config.ini"
|
CONFIG_PATH = "/var/taskmanager/taskmanager/config.ini"
|
||||||
|
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(CONFIG_PATH)
|
config.read(CONFIG_PATH)
|
||||||
ADMINPASS = config.get('c', 'ADMINPASS')
|
ADMINPASS = config.get('credentials', 'ADMINPASS')
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def index():
|
def index():
|
||||||
|
Loading…
Reference in New Issue
Block a user