Settings error

613 views
Skip to first unread message

IRONMAN YT

unread,
Aug 10, 2019, 12:14:49 PM8/10/19
to Django users
when i am typing pip, it is listing some and saying

"Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.)."

What is it's solution?
Screenshot (237).png

Mike Dewhirst

unread,
Aug 11, 2019, 3:01:17 AM8/11/19
to django...@googlegroups.com
On 10/08/2019 2:03 pm, IRONMAN YT wrote:
> when i am typing pip, it is listing some and saying
>
> "_/*Note that only Django core commands are listed as settings are not
> properly configured (error: Requested setting INSTALLED_APPS, but
> settings are not configured. You must either define the environment
> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
> accessing settings.)*/_."
>
> What is it's solution?

Your command line needs an extra argument --settings=<path-to-settings>
where that might be worked out from ...

https://docs.djangoproject.com/en/2.2/topics/settings/#designating-the-settings





> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/623039ed-6693-4c7f-aefa-84c00cf35eab%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/623039ed-6693-4c7f-aefa-84c00cf35eab%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages