From 06ee93d269cb8e1ea34cc65b7e2ffa042a3c920d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 26 Sep 2013 20:56:50 -0400 Subject: [PATCH] better htmls --- service.py | 6 ------ templates/index.html | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/service.py b/service.py index 54b4083..629e089 100644 --- a/service.py +++ b/service.py @@ -4,7 +4,6 @@ from flask import Flask, request, redirect, url_for, render_template from converter import meh app = Flask(__name__) -app.debug = True @app.route('/') def fuck_gpl2(): @@ -18,8 +17,3 @@ def fuck_gpl2(): return '404 Not Found', 404 else: return render_template('index.html') - -@app.route('/', methods=['POST', 'PUT']) -def lazy_301(): - url = request.form.get('url') - redirect(url_for('fuck_gpl2'), url=url) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 46c051b..841d4aa 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,7 +13,9 @@ a Markdown representation of that page.

-

Enjoy!

+

A Kenneth Reitz project.

+ +Fork me on GitHub \ No newline at end of file