django module settings setup | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

django module settings setup

hi to who’s reading this question. Does anyone know how to set up django module settings. I ‘ve been hitting my head on this. Although I made several attempts to set the environment for django, nothing has revealed itself. Here’s the error in summary: ‘Requested setting INSTALLED_APPS, you must either define the django environment variables or call settings. configure()’ I tried both but whenever I entered django-admin this showed up. Any solution would be appreciated.

7th Feb 2018, 3:40 PM
monotom
monotom - avatar
1 Answer
0
Hello, it is likely the problem is being caused by you trying to access the settings via an environment variable without exporting it. Here's a link that might help: https://stackoverflow.com/questions/47700347/django-core-exceptions-improperlyconfigured-requested-setting-use-i18n-but-set?rq=1 Take a look at the solution. Hope it helps and let us know if it works!
8th Oct 2018, 7:10 PM
Tanvir Ahmed
Tanvir Ahmed - avatar