Skip to content

Commit

Permalink
reinserted fix in src/settings/defaults.py: using d.SECRET_KEY and no…
Browse files Browse the repository at this point in the history
…t SECRET_KEY.

(see KITPraktomatTeam#250 (comment) )
this fix had been overwritten between October 2018 and July 2019
by merging KITmaster into this branch https://github.com/ifrh/Praktomat/tree/bugfix_small_typos .

remove trailing whitespaces
(as requested in May 2017 KITPraktomatTeam#268 (comment)
and November 2021 KITPraktomatTeam#268 (comment) )
  • Loading branch information
Robert Hartmann (FB02, H-BRS) authored and Robert Hartmann (FB02, H-BRS) committed Nov 27, 2021
1 parent 3a40a6b commit 80fde4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __setattr__(self, k, v):
else:
import uuid
d.SECRET_KEY = uuid.uuid4().hex
os.fdopen(os.open(secret_keyfile, os.O_WRONLY | os.O_CREAT, 0o600), 'w').write(SECRET_KEY)
os.fdopen(os.open(secret_keyfile, os.O_WRONLY | os.O_CREAT, 0o600), 'w').write(d.SECRET_KEY)


# Templates
Expand Down Expand Up @@ -299,7 +299,7 @@ def __setattr__(self, k, v):
# Alternatively: Run everything in a docker instance, to provide higher
# insulation. Should not be used together with USEPRAKTOMATTESTER.

# It is recomendet to use DOCKER and not a tester account
# It is recomended to use DOCKER and not a tester account
# for using Docker from https://github.com/nomeata/safe-docker
# Use docker to test submission

Expand Down

0 comments on commit 80fde4b

Please sign in to comment.