irongit
Explore
Docs
Sign in
Register
huncholane
/
svelto
Public
A prebuilt stack for Django + Tailwind + Svelte
Code
Commits
Branches
Tags
main
svelto
/
backend
/
create_secret_key.py
7 lines
231 B
Python
Raw
Download
History
1
from
django
.
core
.
management
.
utils
import
get_random_secret_key
2
import
os
3
4
5
FILE
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
)
,
'
backend/secret_key.py
'
)
6
with
open
(
FILE
,
'
w
'
)
as
f
:
7
f
.
write
(
f
"
SECRET_KEY = '
{
get_random_secret_key
(
)
}
'
"
)