如何配置pytest Django设置?

时间:2018-06-17 13:49:07

标签: python django

我想试试pytest-django。我正在关注 configuring django-settings-module

但是,这两种方法都不起作用。

File "/home/mv/miniconda3/lib/python3.6/site-packages/pytest_django/plugin.py", line 120, in _handle_import_error
    raise ImportError(msg)
ImportError: No module named 'test_settings'

pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked up.

我应该编辑我的.bashrc吗? 如何解决这个问题?

0 个答案:

没有答案