28 Apr
2023
28 Apr
'23
1:23 p.m.
On 4/27/23 11:13 PM, Lars Bjørndal wrote:
When running
django-admin migrate
, I get the following:Traceback (most recent call last):
...
django.core.exceptions.ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
How could that be fixed?
Your django-admin command is not finding your settings.py file. Either run it with a --pythonpath argument naming the directory that contains settings.py or set the environment PYTHONPATH to that directory.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan