Skip to content
Snippets Groups Projects
Commit 0697fa0b authored by leo's avatar leo
Browse files
parents b33a3e4d b4588b02
No related branches found
No related tags found
No related merge requests found
FROM tiangolo/uwsgi-nginx-flask:python3.6
RUN pip install peewee
RUN pip install mysql
RUN git clone https://gitlab.warpzone.ms/mowoe/chaos_familien_duell_frontend.git /zwisch
ADD creds.json /app/
RUN mv /zwisch/* /app
from flask import Flask
from view.questions import questions
from model import Question
import json
from model import Question
......
from peewee import SqliteDatabase
from peewee import Model
from peewee import MySQLDatabase
import json
sqlite = SqliteDatabase("model/cfd.sqlite", pragmas={'foreign_keys': 1})
mysql_creds = json.load(open("./creds.json"))
sqlite = SqliteDatabase("static/cfd.sqlite", pragmas={'foreign_keys': 1})
sqlite.connect()
#sqlite = MySQLDatabase(mysql_creds["db"], user=mysql_creds["user"], password=mysql_creds['password'],
# host=mysql_creds['host'], port=int(mysql_creds['port']),)
class BaseModel(Model):
......
{
"host":"","user":"","password":"","db":"","port":1337
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment