mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	updated docs
This commit is contained in:
		
							parent
							
								
									023c008939
								
							
						
					
					
						commit
						1ff741d1cc
					
				| 
						 | 
					@ -1,10 +1,7 @@
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
The :mod:`authentication` module provides a set of pluggable authentication classes.
 | 
					The :mod:`authentication` module provides a set of pluggable authentication classes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Authentication behavior is provided by mixing the :class:`mixins.AuthMixin` class into a :class:`View` class.
 | 
					Authentication behavior is provided by mixing the :class:`mixins.RequestMixin` class into a :class:`View` class.
 | 
				
			||||||
 | 
					 | 
				
			||||||
The set of authentication methods which are used is then specified by setting the
 | 
					 | 
				
			||||||
:attr:`authentication` attribute on the :class:`View` class, and listing a set of :class:`authentication` classes.
 | 
					 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from django.contrib.auth import authenticate
 | 
					from django.contrib.auth import authenticate
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,8 @@
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
The :mod:`permissions` module bundles a set of permission classes that are used
 | 
					The :mod:`permissions` module bundles a set of permission classes that are used
 | 
				
			||||||
for checking if a request passes a certain set of constraints. You can assign a permission
 | 
					for checking if a request passes a certain set of constraints.
 | 
				
			||||||
class to your view by setting your View's :attr:`permissions` class attribute.
 | 
					
 | 
				
			||||||
 | 
					Permission behavior is provided by mixing the :class:`mixins.PermissionsMixin` class into a :class:`View` class.
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from django.core.cache import cache
 | 
					from django.core.cache import cache
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user