DEV Community

Bkr05041992
Bkr05041992

Posted on

You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

can anyone explain or sole this. i got this while i am running my models.py

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay