Added routing for sponsor package and code of conduct #6

Merged
wfryan merged 16 commits from adding-sponsor-and-conduct into master 2022-12-20 20:15:05 -05:00
Showing only changes of commit c3e75a7c2e - Show all commits

View file

@ -55,12 +55,12 @@ def create_app():
return send_from_directory('templates/home/sponsor', path) return send_from_directory('templates/home/sponsor', path)
#Code of conduct #Code of conduct
@app.route('/conduct/conduct.pdf') @app.route('/conduct')
def conduct(): def conductindex():
return url_for('conduct', filename='templates/home/conduct/conduct.pdf') return render_template('home/conduct/index.html')
# @app.route('/conduct/<path:path>') @app.route('/conduct/<path:path>')
#def conduct(path): def conduct(path):
# return send_from_directory('templates/home/conduct', path) return send_from_directory('templates/home/conduct', path)
# Homepage # Homepage
@app.route("/") @app.route("/")