Skip to content

Error for django.conf.settings #352

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

Closed
V-ampire opened this issue Apr 5, 2020 · 1 comment
Closed

Error for django.conf.settings #352

V-ampire opened this issue Apr 5, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@V-ampire
Copy link

V-ampire commented Apr 5, 2020

I have got error when i try to use django settings object.
Something like this:

from django.conf import settings

billing_config = settings.BILLING

token = billing_config['Yandex']['token']

Got errors:

error: Value of type "_VT" is not indexable
error: Invalid index type "str" for "dict"; expected type "_KT"

Is this real issue or I just should use some option in conf. file?

@sobolevn
Copy link
Member

Thanks for the report! Lets join it together with #312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants