Py.test - ImproperlyConfigured
Hi,
I'm using PyCharm's py.test. But I cannot run the tests because of the error "ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
I don't know which part I did it wrong. The settings.py file is fine, the PyCharm Django settings is also fine...
Please kindly review.


请先登录再写评论。
Hello. Do you use Django pytest integration? How do you run it from command line?
Hi Ilya,
I found out the problem, I didn't added the pytest.ini file. After adding the file with all the requirements, I could run pytest.
Thank you