Commit c94d3adcdfe7a6fa14e2911f1dfa95c83f5fdf7b
Fix typo
Horrible mistake of not typing the correct variable names.
| | | | 43 | @app.route('/', methods=['GET']) | 43 | @app.route('/', methods=['GET']) |
---|
44 | def index(): | 44 | def index(): |
---|
45 | return flask.render_template('index.html', content=getContent(), | 45 | return flask.render_template('index.html', content=getContent(), |
---|
46 | title=config.SITE_TITLE) | | title=config.SITE_TITLE) |
---|
| | 46 | title=conf.SITE_TITLE) | 47 | | 47 | |
---|
48 | | 48 | |
---|
49 | @app.route('/edit', methods=['GET']) | 49 | @app.route('/edit', methods=['GET']) |
---|
50 | def edit(): | 50 | def edit(): |
---|
51 | return flask.render_template('editor.html', content=getContent(), | 51 | return flask.render_template('editor.html', content=getContent(), |
---|
52 | title=config) | | title=config) |
---|
| | 52 | title=conf) | 53 | | 53 | |
---|
54 | | 54 | |
---|
55 | @app.route('/page', methods=['POST']) | 55 | @app.route('/page', methods=['POST']) |
---|
… | | … | |
---|
117 | | 117 | |
---|
118 | | 118 | |
---|
119 | if __name__ == "__main__": | 119 | if __name__ == "__main__": |
---|
120 | print config | | print config |
---|
121 | app.run(debug=True, host=config.HOST, port=config.PORT) | | app.run(debug=True, host=config.HOST, port=config.PORT) |
---|
| | 120 | app.run(debug=True, host=conf.HOST, port=conf.PORT) |