djpro.utils package

Subpackages

Submodules

djpro.utils.django_utils module

djpro.utils.django_utils.generate_secret_key()[source]

Django predefined function to create the Django secret key. Return a 50 character random string usable as a SECRET_KEY setting value.

djpro.utils.files_content module

djpro.utils.logging module

djpro.utils.logging.log_with_color(level, message, color, delay=0)[source]

djpro.utils.write_and_config module

djpro.utils.write_and_config.configure_requirements(api: bool, unfold: bool) str[source]

Config requirements content

djpro.utils.write_and_config.configure_settings_base(api: bool, unfold: bool) str[source]

Config settings content

djpro.utils.write_and_config.create_dirs(dirs: list[pathlib.Path])[source]

Function to create folders

djpro.utils.write_and_config.create_files(files: list[pathlib.Path])[source]

Function to create files.

djpro.utils.write_and_config.write_to_file(file_path: Path, content: str, mode: str = 'w')[source]

Function to write content.

Module contents