mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-29 06:03:11 +00:00
26 lines
726 B
Python
26 lines
726 B
Python
from flask import Flask, render_template
|
|
from flask_assets import Bundle
|
|
from website.extensions import db, assets
|
|
from website.config import INSTANCE_DIR
|
|
|
|
app = Flask(__name__) # instance_path=INSTANCE_DIR
|
|
app.config.from_pyfile('config.py')
|
|
|
|
db.init_app(app)
|
|
with app.app_context():
|
|
db.create_all()
|
|
|
|
assets.init_app(app)
|
|
styles = Bundle('sass/styles.sass', filters='libsass, cssmin', output='gen/packed.css', depends='sass/*.sass')
|
|
assets.register('styles', styles)
|
|
scripts = Bundle('js/*.js', filters='jsmin', output='gen/packed.js')
|
|
assets.register('scripts', scripts)
|
|
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
@app.route('/login')
|
|
def login():
|
|
return render_template('login.html')
|