Skip to content

Commit

Permalink
fix DJANGO_SETTINGS_MODULE docs
Browse files Browse the repository at this point in the history
using point to sepcify the path to the setting file, instead of underscore
  • Loading branch information
Yassine-cheffai authored and bluetech committed Nov 16, 2021
1 parent 4a0475d commit cb91422
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/configuring_django.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ Django settings the same way Django does by default.

Example::

$ export DJANGO_SETTINGS_MODULE=test_settings
$ export DJANGO_SETTINGS_MODULE=test.settings
$ pytest

or::

$ DJANGO_SETTINGS_MODULE=test_settings pytest
$ DJANGO_SETTINGS_MODULE=test.settings pytest


Command line option ``--ds=SETTINGS``
-------------------------------------

Example::

$ pytest --ds=test_settings
$ pytest --ds=test.settings


``pytest.ini`` settings
Expand All @@ -36,7 +36,7 @@ Example::
Example contents of pytest.ini::

[pytest]
DJANGO_SETTINGS_MODULE = test_settings
DJANGO_SETTINGS_MODULE = test.settings

Order of choosing settings
--------------------------
Expand Down

0 comments on commit cb91422

Please sign in to comment.