Skip to content

Commit 0e82bd6

Browse files
committed
Merge pull request #95 from halfcrazy/secret_key
compatibility py2
2 parents e2262fb + 1e49d5d commit 0e82bd6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

firefly/local_settings.py.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# coding=utf-8
2+
from firefly.six import unicode
23

3-
SECRET_KEY = '\x97\xfa%\xab\xd2\xc2\xf8\xfc\xef\xaeTKDk\xc0\xe1//($\xc7\xc0'
4+
5+
_secret_key = '\x97\xfa%\xab\xd2\xc2\xf8\xfc\xef\xaeTKDk\xc0\xe1//($\xc7\xc0'
6+
if isinstance(_secret_key, unicode):
7+
SECRET_KEY = _secret_key
8+
else:
9+
SECRET_KEY = unicode(_secret_key)
410

511
# mongodb
612
MONGODB_SETTINGS = {

0 commit comments

Comments
 (0)