Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
4be38f71
Commit
4be38f71
authored
Sep 10, 2016
by
Julian Rother
Browse files
Set safer options in default config
parent
d065302d
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.py.example
View file @
4be38f71
# Defaults for development ,do not use in production!
DEBUG =
Tru
e
DEBUG =
Fals
e
VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de'
#SECRET_KEY = 'something random'
...
...
@@ -15,6 +15,6 @@ DB_DATA = 'db_example.sql'
DB_ENGINE = 'sqlite'
SQLITE_DB = 'db.sqlite'
SQLITE_INIT_SCHEMA = True
SQLITE_INIT_DATA =
Tru
e
SQLITE_INIT_DATA =
Fals
e
#LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de'
server.py
View file @
4be38f71
...
...
@@ -26,9 +26,9 @@ timer.start()
config
=
app
.
config
config
.
from_pyfile
(
'config.py.example'
,
silent
=
True
)
if
not
sys
.
argv
[
0
].
endswith
(
'run.py'
):
config
[
'SQLITE_INIT_DATA'
]
=
Fals
e
config
[
'DEBUG'
]
=
Fals
e
if
sys
.
argv
[
0
].
endswith
(
'run.py'
):
config
[
'SQLITE_INIT_DATA'
]
=
Tru
e
config
[
'DEBUG'
]
=
Tru
e
config
.
from_pyfile
(
'config.py'
,
silent
=
True
)
if
config
[
'DEBUG'
]:
app
.
jinja_env
.
auto_reload
=
True
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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