Browse Source

Add dirty hacks for Python 2/mod_wsgi

marches
Graham Northup 4 years ago
parent
commit
272835184f
Signed by untrusted user: grissess GPG Key ID: 5D000E6F539376FB
  1. 7
      app/routes.py

7
app/routes.py

@ -1,3 +1,5 @@
import sys
from flask import Flask
from flask import render_template
from flask import request
@ -5,6 +7,11 @@ from flask import request
from items import get_items
from items import get_spells
if sys.version_info.major < 3:
# XXX OOF
reload(sys)
sys.setdefaultencoding('utf8')
app = Flask(__name__)
@app.route('/style.css')

Loading…
Cancel
Save