Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HackSoftware/Django-Styleguide-Example
/ functions
Functions
216 in github.com/HackSoftware/Django-Styleguide-Example
⨍
Functions
216
◇
Types & classes
170
↳
Endpoints
6
Function
drf_default_with_modifications_exception_handler
(exc, ctx)
styleguide_example/api/exception_handlers.py:12
Function
email_send
(self, email_id)
styleguide_example/emails/tasks.py:19
Method
enforce_csrf
(self, request)
styleguide_example/api/mixins.py:59
Method
form_valid
(self, form)
styleguide_example/blog_examples/admin_2fa/views.py:59
Method
get
(self, request, user_id)
styleguide_example/users/apis.py:22
Method
get
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/raw/apis.py:19
Method
get
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/raw/views.py:14
Method
get
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/raw/views.py:30
Method
get
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/sdk/apis.py:19
Method
get
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/sdk/views.py:14
Method
get
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/sdk/views.py:30
Method
get
(self, request)
styleguide_example/authentication/apis.py:40
Method
get
(self, request)
styleguide_example/errors/apis.py:26
Method
get
(self, request)
styleguide_example/errors/apis.py:35
Method
get_form
That's a bit of a hack Dynamically change self.form, before delegating to the actual ModelAdmin.get_form Proper kwargs are fo
styleguide_example/files/admin.py:32
Method
get_form
(self, *args, **kwargs)
styleguide_example/blog_examples/admin_2fa/views.py:52
Method
get_form_class
(self)
styleguide_example/blog_examples/admin_2fa/views.py:49
Function
get_future_roster_start_date
(roster_obj)
styleguide_example/testing_examples/tests/factories.py:71
Method
get_paginated_data
(self, data)
styleguide_example/api/pagination.py:25
Method
get_queryset
We want to defer the `html` and `plain_text` fields, since we are not showing them in the list & we don't need to fetch them.
styleguide_example/emails/admin.py:12
Method
get_readonly_fields
We want to show those fields only when we have an existing object.
styleguide_example/files/admin.py:43
Method
get_readonly_fields
(self, request, obj=None)
styleguide_example/blog_examples/admin.py:20
Method
get_urls
(self)
styleguide_example/custom_admin/sites.py:13
Function
gunicorn_event_name_mapper
(logger, name, event_dict)
gunicorn.conf.py:53
Function
hacksoft_proposed_exception_handler
{ "message": "Error message", "extra": {} }
styleguide_example/api/exception_handlers.py:34
Method
handle
(self, *args, **kwargs)
styleguide_example/tasks/management/commands/setup_periodic_tasks.py:17
Method
has_permission
(self, request)
styleguide_example/custom_admin/sites.py:41
Function
inner
(_bound_self, *_func_args, **_func_kwargs)
styleguide_example/blog_examples/celery_non_concurrent/tasks.py:18
Method
is_staff
(self)
styleguide_example/users/models.py:69
Method
login
(self, request, *args, **kwargs)
styleguide_example/custom_admin/sites.py:23
Function
non_concurrent_task
(_func=None, *args, **kwargs)
styleguide_example/blog_examples/celery_non_concurrent/tasks.py:13
Method
post
(self, request)
styleguide_example/users/apis.py:68
Method
post
(self, request, user_id)
styleguide_example/users/apis.py:91
Method
post
(self, request)
styleguide_example/files/apis.py:15
Method
post
(self, request, *args, **kwargs)
styleguide_example/files/apis.py:27
Method
post
(self, request, file_id)
styleguide_example/files/apis.py:38
Method
post
(self, request)
styleguide_example/files/apis.py:53
Method
post
(self, request)
styleguide_example/authentication/apis.py:22
Method
post
(self, request)
styleguide_example/authentication/apis.py:45
Method
post
(self, request)
styleguide_example/authentication/apis.py:64
Function
print_qs
(queryset, *, fields: list[str] | None = None, exclude: list[str] | None = None)
styleguide_example/blog_examples/print_qs_in_shell/utils.py:21
Method
qr_code
(self, obj)
styleguide_example/blog_examples/admin.py:17
Function
receiver_bind_extra_request_metadata
(sender, signal, task=None, logger=None, **kwargs)
styleguide_example/tasks/celery.py:38
Function
receiver_setup_logging
(loglevel, logfile, format, colorize, **kwargs)
styleguide_example/tasks/celery.py:32
Method
rosters
(obj, create, extracted, **kwargs)
styleguide_example/testing_examples/tests/factories.py:93
Method
save_model
(self, request, obj, form, change)
styleguide_example/users/admin.py:27
Method
save_model
(self, request, obj, form, change)
styleguide_example/files/admin.py:53
Function
school_course_create
( *, name: str, slug: Optional[str] = None, school: School, students: Iterable[Student],
styleguide_example/testing_examples/services/school_courses.py:16
Method
send_email
(self, request, queryset)
styleguide_example/emails/admin.py:23
Method
setUp
(self)
styleguide_example/blog_examples/f_expressions/tests/test_f_expressions.py:8
Method
setUp
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:11
Method
setUp
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:85
Method
setUp
(self)
styleguide_example/api/tests/pagination/test_get_paginated_response.py:40
Method
setUp
(self)
styleguide_example/common/tests/services/test_model_update.py:15
Method
students
(obj, create, extracted, **kwargs)
styleguide_example/testing_examples/tests/factories.py:34
Method
test_existing_user_can_login_and_access_apis
1. Create user 2. Assert login is OK 3. Call /api/auth/me 4. Assert valid response
styleguide_example/authentication/tests/apis/test_user_login.py:27
Method
test_existing_user_can_login_and_access_apis
1. Create user 2. Assert login is OK 3. Call /api/auth/me 4. Assert valid response
styleguide_example/authentication/tests/apis/test_user_login.py:101
Method
test_existing_user_can_logout
1. Create user 2. Login, can access APIs 3. Logout, cannot access APIs
styleguide_example/authentication/tests/apis/test_user_login.py:62
Method
test_existing_user_can_logout
1. Create user 2. Login, can access APIs 3. Logout, cannot access APIs
styleguide_example/authentication/tests/apis/test_user_login.py:137
Method
test_inline_serializer_creates_a_serializer
(self)
styleguide_example/api/tests/utils/test_inline_serializer.py:11
Method
test_inline_serializer_passes_kwargs
(self)
styleguide_example/api/tests/utils/test_inline_serializer.py:39
Method
test_json_increment_in_model
(self)
styleguide_example/blog_examples/f_expressions/tests/test_f_expressions.py:13
Method
test_model_update_does_not_automatically_update_updated_at_if_kwarg_is_false
(self)
styleguide_example/common/tests/services/test_model_update.py:150
Method
test_model_update_does_not_automatically_update_updated_at_if_model_does_not_have_it
(self)
styleguide_example/common/tests/services/test_model_update.py:173
Method
test_model_update_does_nothing
(self)
styleguide_example/common/tests/services/test_model_update.py:20
Method
test_model_update_doesnt_automatically_set_updated_at_if_models_has_it_and_value_is_passed
(self)
styleguide_example/common/tests/services/test_model_update.py:130
Method
test_model_update_raises_error_when_called_with_non_existent_field
(self)
styleguide_example/common/tests/services/test_model_update.py:65
Method
test_model_update_sets_automatically_updated_at_if_model_has_it_and_no_value_is_passed
(self)
styleguide_example/common/tests/services/test_model_update.py:112
Method
test_model_update_updates_many_to_many_fields
(self)
styleguide_example/common/tests/services/test_model_update.py:74
Method
test_model_update_updates_only_passed_fields_from_data
(self)
styleguide_example/common/tests/services/test_model_update.py:39
Method
test_model_update_updates_standard_and_many_to_many_fields
(self)
styleguide_example/common/tests/services/test_model_update.py:97
Function
test_non_concurrent_task
()
styleguide_example/blog_examples/celery_non_concurrent/tasks.py:49
Method
test_non_existing_user_cannot_login
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:18
Method
test_non_existing_user_cannot_login
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:92
Method
test_object_can_be_created_when_constraint_is_not_hit
(self)
styleguide_example/common/tests/models/test_random_model.py:33
Method
test_object_create_with_database_constraint_fails_with_integrity_error
(self)
styleguide_example/common/tests/models/test_random_model.py:24
Method
test_object_save_with_database_constraint_fails_with_validation_error_when_full_cleaned
(self)
styleguide_example/common/tests/models/test_random_model.py:12
Method
test_response_is_paginated_correctly
(self)
styleguide_example/api/tests/pagination/test_get_paginated_response.py:46
Method
test_selector_does_not_return_school_courses_for_other_schools
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:36
Method
test_selector_raises_validation_error_if_unexpected_period_is_given
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:24
Method
test_selector_returns_all_school_courses_for_a_given_period
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:70
Method
test_selector_returns_all_school_courses_for_a_given_start_date
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:45
Method
test_selector_returns_all_school_courses_if_no_dates_passed
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:28
Method
test_service_does_not_create_roster_if_period_is_not_valid
(self, roster_validate_period_mock)
styleguide_example/testing_examples/tests/services/test_roster_create.py:32
Method
test_service_does_not_raise_error_if_valid_period
(self)
styleguide_example/testing_examples/tests/services/test_roster_validate_period.py:14
Method
test_service_doesn_not_school_course_period_if_dates_are_passed
(self, roster_validate_period_mock)
styleguide_example/testing_examples/tests/services/test_roster_create.py:54
Method
test_service_raises_error_if_different_schools
(self)
styleguide_example/testing_examples/tests/services/test_roster_create.py:20
Method
test_service_uses_school_course_period_for_default_period
(self, roster_validate_period_mock)
styleguide_example/testing_examples/tests/services/test_roster_create.py:44
Method
test_services_raises_error_for_rosters_outside_period
(self)
styleguide_example/testing_examples/tests/services/test_roster_validate_period.py:36
Method
test_student_is_rostered_to_all_active_school_courses
(self, roster_create_mock, school_courses_mock)
styleguide_example/testing_examples/tests/services/test_student_create.py:16
Method
test_timestamps_with_auto_behavior
Timestamps are set automatically
styleguide_example/blog_examples/tests/models/test_timestamps.py:15
Method
test_timestamps_with_default_behavior
Timestamps are set by default
styleguide_example/blog_examples/tests/models/test_timestamps.py:101
Method
test_timestamps_with_mixed_behavior
Timestamps are set automatically / by default
styleguide_example/blog_examples/tests/models/test_timestamps.py:57
Method
test_timestamps_with_opinionated_behavior
created_at is only set by default
styleguide_example/blog_examples/tests/models/test_timestamps.py:145
Method
test_user_with_capitalized_email_cannot_be_created
(self)
styleguide_example/users/tests/services/test_user_create.py:14
Method
test_user_without_password_is_created_with_unusable_one
(self)
styleguide_example/users/tests/services/test_user_create.py:9
Function
traces_sampler
We want to track only web transactions, and ignore all Celery transactions. Here's an example context from Celery: {
config/settings/sentry.py:20
Function
trigger_application_error
()
styleguide_example/errors/services.py:95
Function
trigger_django_404
()
styleguide_example/errors/services.py:37
Function
trigger_django_object_does_not_exist
()
styleguide_example/errors/services.py:33
← previous
next →
101–200 of 216, ranked by callers