Django Error-django.core.exceptions.ImproperlyConfigured: 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.

FREELANCER JOB

Want to work as Freelancer, check this out : https://www.topcoder.com/gigs?referralId=84qq8h

I also found this error on stack overflow.

The answer which solved my problem is

export DJANGO_SETTINGS_MODULE=mysites.settingshere, mysites is name of Django project where settings.py is available

paste the above line in bash shell before running standalone python script

--

--

--

Want to work as Freelancer, check this out : https://www.topcoder.com/gigs?referralId=84qq8h

Love podcasts or audiobooks? Learn on the go with our new app.

TerrariumPI — Adding a Sensor

Using Google Cloud Build with private GKE clusters

Testing Android Applications on AWS Device Farm using Python

Dexfolio App-Dev Update #1

CS 373 Spring 2022: Carlos Vela (Week of 24 Jan. — 30 Jan.)

Raum Network — Introduction To Decentralised Storage

So You Want To Learn To Code?

Version Control

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alok Kumar - Active Freelancer - Software Consulta

Alok Kumar - Active Freelancer - Software Consulta

Want to work as Freelancer, check this out : https://www.topcoder.com/gigs?referralId=84qq8h

More from Medium

Python : Django Web Framework

How to Implement “Please, Wait!” Animation Using Ajax in Django

Set up and Run Django First Application

Build a Django CRUD App by Using Class-Based Views