Skip to content

Commit 904dda1

Browse files
Fix system check registration
1 parent cc92759 commit 904dda1

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

SORT/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
from SORT.checks import *

home/apps.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44
class HomeConfig(AppConfig):
55
default_auto_field = "django.db.models.BigAutoField"
66
name = "home"
7+
8+
def ready(self):
9+
"""
10+
Initialise this app
11+
"""
12+
# Load system checks
13+
# https://docs.djangoproject.com/en/5.2/topics/checks/
14+
# Suppress linting errors
15+
import home.checks # noqa: F401
File renamed without changes.
File renamed without changes.
File renamed without changes.

SORT/checks/vite_manifest.py renamed to home/checks/vite_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def check_manifest(*args, **kwargs) -> list[django.core.checks.Error]:
2121
if not getattr(settings, 'VITE_MANIFEST_FILE_PATH', None):
2222
errors.append(
2323
django.core.checks.Error(
24-
f"Setting not defined VITE_MANIFEST_FILE_PATH",
24+
"Setting not defined VITE_MANIFEST_FILE_PATH",
2525
hint="Add VITE_MANIFEST_FILE_PATH to settings.py",
2626
id="SORT.E001",
2727
),

0 commit comments

Comments
 (0)