Skip to content

Commit 06ef70b

Browse files
committed
Add django-model-info for devs.
1 parent 014c337 commit 06ef70b

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

hypha/settings/dev.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,11 @@
159159
"SHOW_COLLAPSED": True,
160160
}
161161

162-
# Required for testing the apis from postman
163-
REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"] = REST_FRAMEWORK[
164-
"DEFAULT_AUTHENTICATION_CLASSES"
165-
] + ("rest_framework.authentication.BasicAuthentication",)
162+
# Sentry deny URLs.
166163
SENTRY_DENY_URLS += ["__reload__", "/favicon.ico", "/media/", "/static/", "__debug__"]
164+
165+
# Add django-model-info.
166+
INSTALLED_APPS = [
167+
*INSTALLED_APPS,
168+
"django_model_info.apps.DjangoModelInfoConfig",
169+
]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,19 @@ dependencies = [
6666

6767
[dependency-groups]
6868
"dev" = [
69-
"mypy>=1.13.0",
7069
"coverage>=7.4.4",
7170
"django-browser-reload>=1.16.0",
7271
"django-coverage-plugin>=3.1.0",
7372
"django-debug-toolbar>=4.3.0",
7473
"django-dynamic-fixture>=4.0.1",
74+
"django-model-info>=0.2.2",
7575
"djhtml>=3.0.5",
7676
"dslr>=0.4.0",
7777
"factory_boy>=3.3.1",
7878
"Faker>=28.4.1",
7979
"freezegun>=1.5.1",
8080
"model-bakery>=1.17.0",
81+
"mypy>=1.13.0",
8182
"pre-commit>=4.0.1",
8283
"pytest-cov>=4.1.0",
8384
"pytest-django>=4.9.0",

requirements/dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ django-hijack==3.7.1 \
314314
django-htmx==1.21.0 \
315315
--hash=sha256:64bc31463017a80552b767bc216ee5700248fa72e7ccd2963495e69afbdb6abe \
316316
--hash=sha256:6ed3b42effd5980f22e68f36cd14ee4311bff3b6cb8435a89e27f45995691572
317+
django-model-info==0.2.2 \
318+
--hash=sha256:095c5a56be1b45f182ac94dd66d439e74e5b216a10752cf50cdc54c2dafdf59d \
319+
--hash=sha256:25fc503b56f3e650420f107fff6bb72910275abbff3cd4352ec89c365d8c6ed7
317320
django-modelcluster==6.4 \
318321
--hash=sha256:0102d00e6b884721ba21e32edb716548e0dead7880e130aa2e04854bd384a42f \
319322
--hash=sha256:839b0ddb4a1a6f5fc7d9f2f029614a84350b41315bdb80a9c8b755baaa2297f2
@@ -895,6 +898,7 @@ psycopg2==2.9.10 \
895898
--hash=sha256:4a579d6243da40a7b3182e0430493dbd55950c493d8c68f4eec0b302f6bbf20e \
896899
--hash=sha256:5df2b672140f95adb453af93a7d669d7a7bf0a56bcd26f1502329166f4a61716 \
897900
--hash=sha256:65a63d7ab0e067e2cdb3cf266de39663203d38d6a8ed97f5ca0cb315c73fe067 \
901+
--hash=sha256:91fd603a2155da8d0cfcdbf8ab24a2d54bca72795b90d2a3ed2b6da8d979dee2 \
898902
--hash=sha256:c6f7b8561225f9e711a9c47087388a97fdc948211c10a4bccbf0ba68ab7b3b5a
899903
pwned-passwords-django==5.1.1 \
900904
--hash=sha256:5fea82fad910ce137a50615968a1670064799bca8cc4ad7c754564a5733348a4 \

requirements/prod.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ psycopg2==2.9.10 \
632632
--hash=sha256:4a579d6243da40a7b3182e0430493dbd55950c493d8c68f4eec0b302f6bbf20e \
633633
--hash=sha256:5df2b672140f95adb453af93a7d669d7a7bf0a56bcd26f1502329166f4a61716 \
634634
--hash=sha256:65a63d7ab0e067e2cdb3cf266de39663203d38d6a8ed97f5ca0cb315c73fe067 \
635+
--hash=sha256:91fd603a2155da8d0cfcdbf8ab24a2d54bca72795b90d2a3ed2b6da8d979dee2 \
635636
--hash=sha256:c6f7b8561225f9e711a9c47087388a97fdc948211c10a4bccbf0ba68ab7b3b5a
636637
pwned-passwords-django==5.1.1 \
637638
--hash=sha256:5fea82fad910ce137a50615968a1670064799bca8cc4ad7c754564a5733348a4 \

uv.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)