diff --git a/main.py b/main.py index 15b866c2068bfe945c5ec86344c5a9112d35e511..04c923de5760f6df73c4a5b12dbb8f8e5dd31785 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,9 @@ import random from flask import request from peewee import * -db = SqliteDatabase('cfd.db') +db = MySQLDatabase('chaos_familien_duell', user='cfd', password='iuMRS2GPCdnLHeOX', + host='mowoe.com', port=2307) + class Answers(Model): q1 = CharField() @@ -61,4 +63,4 @@ def submit(): if __name__ == "__main__": db.connect() db.create_tables([Answers]) - app.run() \ No newline at end of file + app.run("0.0.0.0") \ No newline at end of file