<filename>flask_tr/admin.py
from flask import (
    Blueprint, flash, g, redirect, render_template, request, url_for
)
from werkzeug.exceptions import abort
import os

from flask_tr.auth import login_required

bp = Blueprint('admin', __name__)


@bp.route('/admin', methods=['GET'])
@login_required
def admin():
    return render_template('admin/index.html',
                           tinymce_key=os.getenv("TINYMCE_KEY"))

<filename>flask_tr/admin.py
from flask import (
    Blueprint, flash, g, redirect, render_template, request, url_for
)
from werkzeug.exceptions import abort
import os

from flask_tr.auth import login_required

bp = Blueprint('admin', __name__)


@bp.route('/admin', methods=['GET'])
@login_required
def admin():
    return render_template('admin/index.html',
                           tinymce_key=os.getenv("TINYMCE_KEY"))
