Skip to content

Commit e64190d

Browse files
committed
doc: mention addopts to set --ds; typos
1 parent 4957b6f commit e64190d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/changelog.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ Compatibility
3939

4040
* Settings defined in `pytest.ini`/`tox.ini`/`setup.cfg` used to override
4141
`DJANGO_SETTINGS_MODULE` defined in the environment. Previously the order was
42-
undocmented. Now, instead the settings from the environment will be used
43-
instead. If you previously relied on overriding the enviornment variable, you
44-
can instead specify `addopts = --ds=yourtestsettings` in the ini-file which
45-
will use the test settings. See `PR #199
42+
undocumented. Now, instead the settings from the environment will be used
43+
instead. If you previously relied on overriding the environment variable,
44+
you can instead specify `addopts = --ds=yourtestsettings` in the ini-file
45+
which will use the test settings. See `PR #199
4646
<https://github.com/pytest-dev/pytest-django/pull/199>`_.
4747

4848
* Support for Django 1.9.

docs/configuring_django.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ Example contents of pytest.ini::
4141
Order of choosing settings
4242
--------------------------
4343

44-
If `--ds`, the environment variable and the pytest.ini configuration is used at
45-
the same time, pytest-django will first prefer using settings from the command
46-
line option `--ds`, then the environment variable and last the pytest.ini.
44+
When the command option `--ds`, the environment variable and the pytest.ini
45+
configuration is used at the same time, pytest-django will prefer using
46+
settings from the command line option `--ds`, then the environment variable and
47+
last the pytest.ini.
48+
You can use `addopts = --ds=yourtestsettings` in your pytest configuration
49+
to automatically add the `--ds` option.
4750

4851
Using django-configurations
4952
---------------------------

0 commit comments

Comments
 (0)