Skip to content
Snippets Groups Projects
Commit aa1d9454 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Add config file

parent 02107a1f
No related branches found
No related tags found
No related merge requests found
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()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment