Commit c94d3adcdfe7a6fa14e2911f1dfa95c83f5fdf7b
- Diff rendering mode:
- inline
- side by side
server.py
(3 / 4)
  | |||
43 | 43 | @app.route('/', methods=['GET']) | |
44 | 44 | def index(): | |
45 | 45 | return flask.render_template('index.html', content=getContent(), | |
46 | title=config.SITE_TITLE) | ||
46 | title=conf.SITE_TITLE) | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @app.route('/edit', methods=['GET']) | |
50 | 50 | def edit(): | |
51 | 51 | return flask.render_template('editor.html', content=getContent(), | |
52 | title=config) | ||
52 | title=conf) | ||
53 | 53 | ||
54 | 54 | ||
55 | 55 | @app.route('/page', methods=['POST']) | |
… | … | ||
117 | 117 | ||
118 | 118 | ||
119 | 119 | if __name__ == "__main__": | |
120 | print config | ||
121 | app.run(debug=True, host=config.HOST, port=config.PORT) | ||
120 | app.run(debug=True, host=conf.HOST, port=conf.PORT) |