2017-06-05 13:04:03 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-02-10 15:02:38 +01:00
|
|
|
#=================================================
|
2019-03-05 23:17:15 +01:00
|
|
|
# COMMON VARIABLES
|
2019-02-10 15:02:38 +01:00
|
|
|
#=================================================
|
|
|
|
|
2019-03-05 23:17:15 +01:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2022-04-11 17:16:03 +02:00
|
|
|
generate_secret_key() {
|
|
|
|
(
|
|
|
|
set +o nounset
|
2023-04-26 17:44:04 +02:00
|
|
|
source "${install_dir}/venv/bin/activate"
|
2022-04-11 17:16:03 +02:00
|
|
|
set -o nounset
|
|
|
|
python3 -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
|
|
|
|
)
|
|
|
|
}
|
2022-07-29 23:30:24 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|