test.SimpleTestCase.settings()
  • References/Python/Django/Guides

SimpleTestCase.settings() [source] For testing purposes it’s often useful to change a setting

2025-01-10 15:47:30
test.SimpleTestCase.assertRedirects()
  • References/Python/Django/Guides

SimpleTestCase.assertRedirects(response, expected_url, status_code=302, target_status_code=200, msg_prefix='', fetch_redirect_response=True)

2025-01-10 15:47:30
test.SimpleTestCase.assertXMLNotEqual()
  • References/Python/Django/Guides

SimpleTestCase.assertXMLNotEqual(xml1, xml2, msg=None) [source] Asserts that the strings

2025-01-10 15:47:30
test.RequestFactory
  • References/Python/Django/Guides

class RequestFactory [source] The RequestFactory shares the same API as the

2025-01-10 15:47:30
auth.mixins.LoginRequiredMixin
  • References/Python/Django/Guides

class LoginRequiredMixin New in Django 1.9. If

2025-01-10 15:47:30
utils.log.RequireDebugFalse
  • References/Python/Django/Guides

class RequireDebugFalse [source] This filter will only pass on records when settings.DEBUG

2025-01-10 15:47:30
db.transaction.get_autocommit()
  • References/Python/Django/Guides

get_autocommit(using=None) [source]

2025-01-10 15:47:30
auth.mixins.AccessMixin.handle_no_permission()
  • References/Python/Django/Guides

handle_no_permission() Depending on the value of raise_exception, the method either raises a PermissionDenied

2025-01-10 15:47:30
Search
  • References/Python/Django/Guides

A common task for web applications is to search some data in the database with user input. In a simple case, this could be filtering a list of objects by a category. A more

2025-01-10 15:47:30
auth.models.CustomUserManager.create_user()
  • References/Python/Django/Guides

create_user(*username_field*, password=None, **other_fields) The prototype of create_user() should accept the username

2025-01-10 15:47:30