[3.1.x] Used :envvar: role and .. envvar:: directive in various docs.

Backport of fbdb032de2 from master
This commit is contained in:
Nick Pope 2020-04-30 11:12:05 +01:00 committed by Mariusz Felisiak
parent 345fa40cb5
commit 4eb5e4ee4f
15 changed files with 65 additions and 49 deletions

View file

@ -2,12 +2,12 @@
FAQ: Using Django
=================
Why do I get an error about importing DJANGO_SETTINGS_MODULE?
=============================================================
Why do I get an error about importing :envvar:`DJANGO_SETTINGS_MODULE`?
=======================================================================
Make sure that:
* The environment variable DJANGO_SETTINGS_MODULE is set to a
* The environment variable :envvar:`DJANGO_SETTINGS_MODULE` is set to a
fully-qualified Python module (i.e. "mysite.settings").
* Said module is on ``sys.path`` (``import mysite.settings`` should work).