Forum Archive

Django install error

ihf

I tried following this: https://dev.to/jjsantos/running-django-on-an-ipad-20kb but when I try to use Stash to do pip install Django == 3.1.7, the install fails:

Querying PyPI ...
Error: Failed to fetch package release urls
[~/Documents]$ pip install urls
Querying PyPI ...
Error: Failed to fetch package release urls

cheseremtitus

Run:

pip install asgiref

Then restart. That shud do it

But then there's this error

  • Note that only Django core commands are listed as settings are not properly configured (error: 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.).

Need help with is. I believe you need to set an environment variable to point to a named Django settings-config file. Much of a gray area for me still a newbie to the stash terminal. Any heads up ?