This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tekstmelding/tekstmelding.py
T
2014-08-06 20:49:11 +02:00

25 lines
428 B
Python

from flask import Flask
import MySQLdb
import MySQLdb.cursors
import datetime
import config
db = MySQLdb.connect(
host = config.DATABASE_HOST,
user = config.DATABASE_USER,
passwd = config.DATABASE_PASS,
db = config.DATABASE_NAME,
cursorclass = MySQLdb.cursors.DictCursor)
cur = db.cursor()
app = Flask(__name__)
@app.route('/')
def main():
return 'Tekstmelding er bezt!'
if __name__ == '__main__':
app.run()