Coverage for app/venv/lib/python3.14/site-packages/weblate/utils/generate_secret_key.py: 0%
6 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
1#!/usr/bin/env python3
3# Copyright © Michal Čihař <michal@weblate.org>
4#
5# SPDX-License-Identifier: GPL-3.0-or-later
7from django.utils.crypto import get_random_string
10def main(argv=None, developer_mode: bool = False) -> None:
11 chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)"
12 print(get_random_string(50, chars))
15if __name__ == "__main__":
16 main()