fix static
This commit is contained in:
parent
1b87e33577
commit
f3e04f8316
6 changed files with 14 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
resumes
|
resumes*/
|
||||||
|
resumes*.zip
|
||||||
config_hackWPI.py
|
config_hackWPI.py
|
||||||
config.py
|
config.py
|
||||||
# Created by https://www.gitignore.io/api/web,vim,git,macos,linux,bower,grunt,python,pycharm,windows,eclipse,webstorm,intellij,jetbrains,virtualenv,visualstudio,visualstudiocode
|
# Created by https://www.gitignore.io/api/web,vim,git,macos,linux,bower,grunt,python,pycharm,windows,eclipse,webstorm,intellij,jetbrains,virtualenv,visualstudio,visualstudiocode
|
||||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "templates/home"]
|
||||||
|
path = templates/home
|
||||||
|
url = https://github.com/acm/hack-wpi-static.git
|
10
flask_app.py
10
flask_app.py
|
@ -11,7 +11,7 @@ import requests
|
||||||
from email.mime.multipart import MIMEMultipart
|
from email.mime.multipart import MIMEMultipart
|
||||||
from email.mime.text import MIMEText
|
from email.mime.text import MIMEText
|
||||||
from dateutil.relativedelta import relativedelta
|
from dateutil.relativedelta import relativedelta
|
||||||
from flask import Flask, render_template, redirect, url_for, request, session, jsonify
|
from flask import Flask, render_template, redirect, url_for, request, session, jsonify, send_from_directory
|
||||||
from flask_sqlalchemy import SQLAlchemy
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
|
|
||||||
|
@ -57,7 +57,13 @@ def server_error():
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def root():
|
def root():
|
||||||
return render_template('index.html', registration_open=REGISTRATION_OPEN)
|
return render_template('home/index.html', registration_open=REGISTRATION_OPEN)
|
||||||
|
|
||||||
|
@app.route('/assets/<path:path>')
|
||||||
|
def staticassets(path):
|
||||||
|
|
||||||
|
return send_from_directory('templates/home/assets', path)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/resumepost', methods=['POST'])
|
@app.route('/resumepost', methods=['POST'])
|
||||||
def resumepost():
|
def resumepost():
|
||||||
|
|
Binary file not shown.
Binary file not shown.
1
templates/home
Submodule
1
templates/home
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 637c37969429c5ac5f835e29b3bf7d8b98e4aac5
|
Loading…
Add table
Reference in a new issue