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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Lane
Lane

Written by Lane

0 Followers

Ruby, JavaScript and Python developer.

No responses yet

Write a response