Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add django-model-info for devs. #4342

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions hypha/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@
"SHOW_COLLAPSED": True,
}

# Required for testing the apis from postman
REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"] = REST_FRAMEWORK[
"DEFAULT_AUTHENTICATION_CLASSES"
] + ("rest_framework.authentication.BasicAuthentication",)
# Sentry deny URLs.
SENTRY_DENY_URLS += ["__reload__", "/favicon.ico", "/media/", "/static/", "__debug__"]

# Add django-model-info.
INSTALLED_APPS = [
*INSTALLED_APPS,
"django_model_info.apps.DjangoModelInfoConfig",
]
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,19 @@ dependencies = [

[dependency-groups]
"dev" = [
"mypy>=1.13.0",
"coverage>=7.4.4",
"django-browser-reload>=1.16.0",
"django-coverage-plugin>=3.1.0",
"django-debug-toolbar>=4.3.0",
"django-dynamic-fixture>=4.0.1",
"django-model-info>=0.2.2",
"djhtml>=3.0.5",
"dslr>=0.4.0",
"factory_boy>=3.3.1",
"Faker>=28.4.1",
"freezegun>=1.5.1",
"model-bakery>=1.17.0",
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"pytest-cov>=4.1.0",
"pytest-django>=4.9.0",
Expand Down
4 changes: 4 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ django-hijack==3.7.1 \
django-htmx==1.21.0 \
--hash=sha256:64bc31463017a80552b767bc216ee5700248fa72e7ccd2963495e69afbdb6abe \
--hash=sha256:6ed3b42effd5980f22e68f36cd14ee4311bff3b6cb8435a89e27f45995691572
django-model-info==0.2.2 \
--hash=sha256:095c5a56be1b45f182ac94dd66d439e74e5b216a10752cf50cdc54c2dafdf59d \
--hash=sha256:25fc503b56f3e650420f107fff6bb72910275abbff3cd4352ec89c365d8c6ed7
django-modelcluster==6.4 \
--hash=sha256:0102d00e6b884721ba21e32edb716548e0dead7880e130aa2e04854bd384a42f \
--hash=sha256:839b0ddb4a1a6f5fc7d9f2f029614a84350b41315bdb80a9c8b755baaa2297f2
Expand Down Expand Up @@ -895,6 +898,7 @@ psycopg2==2.9.10 \
--hash=sha256:4a579d6243da40a7b3182e0430493dbd55950c493d8c68f4eec0b302f6bbf20e \
--hash=sha256:5df2b672140f95adb453af93a7d669d7a7bf0a56bcd26f1502329166f4a61716 \
--hash=sha256:65a63d7ab0e067e2cdb3cf266de39663203d38d6a8ed97f5ca0cb315c73fe067 \
--hash=sha256:91fd603a2155da8d0cfcdbf8ab24a2d54bca72795b90d2a3ed2b6da8d979dee2 \
--hash=sha256:c6f7b8561225f9e711a9c47087388a97fdc948211c10a4bccbf0ba68ab7b3b5a
pwned-passwords-django==5.1.1 \
--hash=sha256:5fea82fad910ce137a50615968a1670064799bca8cc4ad7c754564a5733348a4 \
Expand Down
1 change: 1 addition & 0 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ psycopg2==2.9.10 \
--hash=sha256:4a579d6243da40a7b3182e0430493dbd55950c493d8c68f4eec0b302f6bbf20e \
--hash=sha256:5df2b672140f95adb453af93a7d669d7a7bf0a56bcd26f1502329166f4a61716 \
--hash=sha256:65a63d7ab0e067e2cdb3cf266de39663203d38d6a8ed97f5ca0cb315c73fe067 \
--hash=sha256:91fd603a2155da8d0cfcdbf8ab24a2d54bca72795b90d2a3ed2b6da8d979dee2 \
--hash=sha256:c6f7b8561225f9e711a9c47087388a97fdc948211c10a4bccbf0ba68ab7b3b5a
pwned-passwords-django==5.1.1 \
--hash=sha256:5fea82fad910ce137a50615968a1670064799bca8cc4ad7c754564a5733348a4 \
Expand Down
16 changes: 16 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading