Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
Robin Sonnabend
arg-helper
Commits
aa1d9454
Commit
aa1d9454
authored
Feb 05, 2019
by
Robin Sonnabend
Browse files
Add config file
parent
02107a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.example.py
0 → 100644
View file @
aa1d9454
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/"
,
}
server.py
View file @
aa1d9454
...
...
@@ -7,17 +7,12 @@ import bs4
import
os
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
=
{
"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"
,
}
wikis
=
config
.
WIKIS
wiki_choices
=
list
(
zip
(
wikis
.
keys
(),
wikis
.
keys
()))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment