Browse Source

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

joel
Simon Bowie 2 years ago
parent
commit
fd8b298bd1
3 changed files with 2 additions and 4 deletions
  1. +0
    -1
      .env.template
  2. +1
    -2
      web/app/__init__.py
  3. +1
    -1
      web/app/auth.py

+ 0
- 1
.env.template View File

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
- 2
web/app/__init__.py View File

moment = Moment() moment = Moment()


def create_app(): 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 # get config variables from OS environment variables: set in env file passed through Docker Compose
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY') app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY')

+ 1
- 1
web/app/auth.py View File

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


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


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

Loading…
Cancel
Save