title: How to solve PytestConfigWarning: Unknown config option: DJANGO_ SETTINGS_MODULE error?
body: <p>I am using django to build my website and I have used django-pytest to test my apps but I have got this error
  <strong>Note I am usign python 3.9</strong></p>
  <pre><code>================================================================== warnings summary 
  
  ===================================================================
  ..\venv\lib\site-packages\_pytest\config\__init__.py:1233
    c:\users\eng_diaa_shalaby\desktop\unittest\venv\lib\site-packages\_pytest\config\__init__.py:1233: PytestConfigWarning: Unknown config option: DJANGO_
  SETTINGS_MODULE
  
      self._warn_or_fail_if_strict(f&quot;Unknown config option: {key}\n&quot;)
  
  -- Docs: https://docs.pytest.org/en/stable/warnings.html
  </code></pre>
  <p>This is my pytest.ini file content</p>
  <pre><code># -- FILE: pytest.ini (or tox.ini)
  [pytest]
  DJANGO_SETTINGS_MODULE = testing_settings
  # -- recommended but optional:
  python_files = tests.py test_*.py *_tests.py
  </code></pre>
  <p>and I run this command</p>
  <pre><code>pytest
  </code></pre>
  <p>and this is my venv packages</p>
  <pre><code>Package       Version
  ------------- -------
  asgiref       3.3.4
  atomicwrites  1.4.0
  attrs         21.2.0
  colorama      0.4.4
  coverage      5.5
  Django        3.2.4
  django-pytest 0.2.0
  iniconfig     1.1.1
  packaging     20.9
  pip           21.1.2
  pluggy        0.13.1
  py            1.10.0
  pyparsing     2.4.7
  pytest        6.2.4
  pytz          2021.1
  setuptools    57.0.0
  sqlparse      0.4.1
  toml          0.10.2
  </code></pre>