Flask has its own request module, we don't need python-requests

This commit is contained in:
ponas committed 2014-08-07 18:22:09 +02:00
1 parent 562ae02baa
commit 4ba62574a2
3 files changed
+10 -4

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
DEBUG = True
DATABASE_HOST = 'localhost'
DATABASE_USER = 'inside'
DATABASE_PASS = ''
-1
View File
@@ -1,3 +1,2 @@
Flask==0.10.1
requests==2.3.0
MySQL-python==1.2.5
+8 -3
View File
@@ -1,4 +1,4 @@
from flask import Flask
from flask import Flask, request
import MySQLdb
import MySQLdb.cursors
import datetime
@@ -18,7 +18,12 @@ app = Flask(__name__)
@app.route('/')
def main():
return 'Tekstmelding er bezt!'
return 'Tekstmelding er bezt!'
@app.route('/callback')
def callack():
return 'Callback liksom.'
if __name__ == '__main__':
app.run()
app.debug = config.DEBUG
app.run()