jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.49k stars 205 forks source link

Do not leak `key` loop variable into global namespace #226

Closed sobolevn closed 1 year ago

sobolevn commented 1 year ago

This is a common problem for module level loops / helpers / etc.

key is importable name, it is even imported when using from dj_database_url import *. This is clearly not what we want.