From c37fcf752668662262c1654fed3fbc201e37b8d9 Mon Sep 17 00:00:00 2001 From: pythonwood <582223837@qq.com> Date: Wed, 20 Jan 2021 13:05:59 +0800 Subject: [PATCH] rules.apps.AutodiscoverRulesConfig pick rules.py rules is not enought for test project --- tests/testapp/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testapp/settings.py b/tests/testapp/settings.py index e78b032..1b95089 100644 --- a/tests/testapp/settings.py +++ b/tests/testapp/settings.py @@ -21,7 +21,8 @@ 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', - 'rules', + # [Best practices] replace 'rules' with: + 'rules.apps.AutodiscoverRulesConfig', 'testapp', ]