python-gallery/gallery/settings.py
Michał 828167f762 Added settings page
Added logging to a .log file
Fixed Images loosing colour and rotation on thumbnail generation
Added more info to README
2023-03-01 23:29:34 +00:00

32 lines
718 B
Python

from flask import Blueprint, render_template, url_for
from werkzeug.exceptions import abort
from gallery.auth import login_required
from gallery.db import get_db
from datetime import datetime
now = datetime.now()
blueprint = Blueprint('settings', __name__, url_prefix='/settings')
@blueprint.route('/')
@login_required
def general():
return render_template('settings/general.html')
@blueprint.route('/server')
@login_required
def server():
return render_template('settings/server.html')
@blueprint.route('/account')
@login_required
def account():
return render_template('settings/account.html')
@blueprint.route('/logs')
@login_required
def logs():
return render_template('settings/logs.html')