redirect_to_login(next, login_url=None, redirect_field_name='next') Redirects to the login page, and then back to another URL
set_password(raw_password) Sets the user’s password to the given raw string, taking care of the password hashing. Doesn’t save
TransactionTestCase.assertNumQueries(num, func, *args, **kwargs) [source] Asserts that when
get_permission_required() Returns an iterable of permission names used by the mixin. Defaults to the permission_required
SimpleTestCase.client Every test case in a django.test.*TestCase instance has access to an instance of a Django
rollback(using=None) [source] These functions take a using argument which should
class django.http.Http404 When you return an error such as
head(path, data=None, follow=False, secure=False, **extra) [source] Makes a HEAD request
A model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a
Automated testing is an extremely useful bug-killing tool for the modern Web developer. You can use a collection of tests – a test suite – to solve, or avoid
Page 23 of 35