Lane
Dec 17, 2020

How to run Django tests in PyCharm?

PyCharm has facilitated Django (and Django Rest Framework) tests by:

But if you click it, you will got some errors. That is because you haven’t configured it well.

First, we need to configure the Django tests template, click Run -> Edit configurations , them click the `wrench` icon, like this:

Then, we need to set the `Custom settings` add all the `Environment variables`.

That is all.

Lane
Lane

Written by Lane

0 Followers

Ruby, JavaScript and Python developer.

No responses yet