You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importosifnot"DJANGO_SETTINGS_MODULE"inos.environ:
raiseAssertionError("You need DJANGO_SETTINGS_MODULE in your os.environ")
importdjangodjango.setup()
When attempting to run this, I get:
django.core.exceptions.ImproperlyConfigured: django-configurations settings importer wasn't correctly installed. Please use one of the starter functions to install it as mentioned in the docs: https://django-configurations.readthedocs.io/
I couldn't find documentation for how to get this working with django-configurations. The docs talk about cases that use execute_from_command_line, but I don't want/need to use that here. Is there a way to get this to work?
Thanks!
The text was updated successfully, but these errors were encountered:
I have scripts that start like this:
When attempting to run this, I get:
I couldn't find documentation for how to get this working with django-configurations. The docs talk about cases that use
execute_from_command_line
, but I don't want/need to use that here. Is there a way to get this to work?Thanks!
The text was updated successfully, but these errors were encountered: