Skip to content

Commit cb91422

Browse files
Yassine-cheffaibluetech
authored andcommitted
fix DJANGO_SETTINGS_MODULE docs
using point to sepcify the path to the setting file, instead of underscore
1 parent 4a0475d commit cb91422

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/configuring_django.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ Django settings the same way Django does by default.
1414

1515
Example::
1616

17-
$ export DJANGO_SETTINGS_MODULE=test_settings
17+
$ export DJANGO_SETTINGS_MODULE=test.settings
1818
$ pytest
1919

2020
or::
2121

22-
$ DJANGO_SETTINGS_MODULE=test_settings pytest
22+
$ DJANGO_SETTINGS_MODULE=test.settings pytest
2323

2424

2525
Command line option ``--ds=SETTINGS``
2626
-------------------------------------
2727

2828
Example::
2929

30-
$ pytest --ds=test_settings
30+
$ pytest --ds=test.settings
3131

3232

3333
``pytest.ini`` settings
@@ -36,7 +36,7 @@ Example::
3636
Example contents of pytest.ini::
3737

3838
[pytest]
39-
DJANGO_SETTINGS_MODULE = test_settings
39+
DJANGO_SETTINGS_MODULE = test.settings
4040

4141
Order of choosing settings
4242
--------------------------

0 commit comments

Comments
 (0)