瀏覽代碼

fixing subdomain redirection

joel
Simon Bowie 2 年之前
父節點
當前提交
31113c6a89
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. +1
    -0
      .env.template
  2. +1
    -1
      web/app/auth.py

+ 1
- 0
.env.template 查看文件

FLASK_ENV=development FLASK_ENV=development
SECRET_KEY= SECRET_KEY=
DATABASE_URL=sqlite:///db.sqlite DATABASE_URL=sqlite:///db.sqlite
SERVER_NAME=


# MariaDB variables (for production only) # MariaDB variables (for production only)
MYSQL_ROOT_PASSWORD= MYSQL_ROOT_PASSWORD=

+ 1
- 1
web/app/auth.py 查看文件

from .models import User from .models import User
from . import db from . import db


auth = Blueprint('auth', __name__)
auth = Blueprint('auth', __name__, subdomain="toolkit")


# routes for login page # routes for login page
@auth.route('/login') @auth.route('/login')

Loading…
取消
儲存