瀏覽代碼

didn't work. removing last two commits-worth of code

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

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

@@ -6,7 +6,6 @@ FLASK_RUN_HOST=0.0.0.0
FLASK_ENV=development
SECRET_KEY=
DATABASE_URL=sqlite:///db.sqlite
SERVER_NAME=

# MariaDB variables (for production only)
MYSQL_ROOT_PASSWORD=

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

@@ -20,8 +20,7 @@ db = SQLAlchemy()
moment = Moment()

def create_app():
app = Flask(__name__, subdomain_matching=True)
app.config['SERVER_NAME'] = os.environ.get('SERVER_NAME')
app = Flask(__name__)

# get config variables from OS environment variables: set in env file passed through Docker Compose
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY')

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

@@ -12,7 +12,7 @@ from flask_login import login_user, logout_user, login_required
from .models import User
from . import db

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

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

Loading…
取消
儲存