OWASP / OWASP/Nest

Avoid accessing Django database settings at import time

Open
#3,577 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
451
Forks
702
Avg merge
22h 59m
Merged PRs (30d)
91

Description

The current implementation reads database settings at module scope. This can cause issues when the module is imported before Django settings are fully initialized. Database configuration should instead be accessed during runtime inside the management command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.