Skip to content

Commit 70d433d

Browse files
zwarediegorusso
authored andcommitted
Add a bit of output to generate_secret
1 parent 0bc499b commit 70d433d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

speed_python/generate_secret.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/usr/bin/env python
22

3+
from __future__ import print_function
4+
35
import os
46

57
from django.utils.crypto import get_random_string
68

79
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
810
secret = get_random_string(50, chars)
911

10-
with open(os.path.join(os.path.dirname(__file__), 'secret_key'), 'w') as f:
12+
filename = os.path.join(os.path.dirname(__file__), 'secret_key')
13+
print('Writing secret key to', filename)
14+
with open(filename, 'w') as f:
1115
f.write(secret)

0 commit comments

Comments
 (0)