DJANGO_SETTINGS_MODULE error

16 views
Skip to first unread message

Prashanth Patelc

unread,
Mar 23, 2022, 7:57:08 AM3/23/22
to django...@googlegroups.com
I am getting this error 
please solve any one thanks in advance.


django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

Kasper Laudrup

unread,
Mar 23, 2022, 1:54:28 PM3/23/22
to django...@googlegroups.com
On 23/03/2022 12.55, Prashanth Patelc wrote:
> /I am getting this error /
> /please solve any one thanks in advance./
> /
> /
>
> django.core.exceptions.ImproperlyConfigured: Requested setting
> REST_FRAMEWORK, but settings are not configured. You must either define
> the environment variable DJANGO_SETTINGS_MODULE or call
> settings.configure() before accessing settings.
>

Instead of just copy-pasting an error message, try to learn how to ask a
question someone has a chance to answer.

Reading something like this will help solve your problem:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,

Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages