Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django settings import #91

Open
k0t3n opened this issue Jul 2, 2021 · 1 comment
Open

Django settings import #91

k0t3n opened this issue Jul 2, 2021 · 1 comment

Comments

@k0t3n
Copy link

k0t3n commented Jul 2, 2021

Detect wrong django settings import:

from .settings import DEBUG  # should detect
from django.conf import settings  # ok

https://docs.djangoproject.com/en/dev/topics/settings/#using-settings-in-python-code

@calumy
Copy link
Contributor

calumy commented Aug 5, 2022

This can be fixed using flake8-tidy-imports using the banned-modules configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants