Commit aa1d9454 authored by Robin Sonnabend's avatar Robin Sonnabend

Add config file

parent 02107a1f
SECRET_KEY = os.urandom(64)
wikis = {
"Wikipedia Deutsch": "https://de.wikipedia.org/wiki/",
"Wikipedia English": "https://en.wikipedia.org/wiki/",
"Wikipedia Deutsch (mobil)": "https://de.m.wikipedia.org/wiki/",
"Wikipedia English (mobile)": "https://en.m.wikipedia.org/wiki/",
}
...@@ -7,17 +7,12 @@ import bs4 ...@@ -7,17 +7,12 @@ import bs4
import os import os
import urllib import urllib
app = Flask(__name__, static_folder="argumenthelperstatic") import config
app.config["SECRET_KEY"] = os.urandom(64) app = Flask(__name__, static_folder="argumenthelperstatic")
app.config.from_object(config)
wikis = { wikis = config.WIKIS
"Wikipedia Deutsch": "https://de.wikipedia.org/wiki/",
"Wikipedia English": "https://en.wikipedia.org/wiki/",
"Wikipedia Deutsch (mobil)": "https://de.m.wikipedia.org/wiki/",
"Wikipedia English (mobile)": "https://en.m.wikipedia.org/wiki/",
"FSMPI PubWiki": "https://pubwiki.fsmpi.rwth-aachen.de",
}
wiki_choices = list(zip(wikis.keys(), wikis.keys())) wiki_choices = list(zip(wikis.keys(), wikis.keys()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment