mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Commas added in README (#7730)
To make it more comfortable for users to copy and paste snippets
This commit is contained in:
		
							parent
							
								
									e32ebc4199
								
							
						
					
					
						commit
						b463878132
					
				| 
						 | 
				
			
			@ -113,7 +113,7 @@ router.register(r'users', UserViewSet)
 | 
			
		|||
# Additionally, we include login URLs for the browsable API.
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    path('', include(router.urls)),
 | 
			
		||||
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
 | 
			
		||||
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
 | 
			
		||||
]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -131,7 +131,7 @@ REST_FRAMEWORK = {
 | 
			
		|||
    # Use Django's standard `django.contrib.auth` permissions,
 | 
			
		||||
    # or allow read-only access for unauthenticated users.
 | 
			
		||||
    'DEFAULT_PERMISSION_CLASSES': [
 | 
			
		||||
        'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
 | 
			
		||||
        'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user