mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	correcting unclosed quote in routers.md
correcting unclosed quote in routers.md
This commit is contained in:
		
							parent
							
								
									e39d8410de
								
							
						
					
					
						commit
						3ca8f85a5b
					
				| 
						 | 
					@ -60,7 +60,7 @@ For example, you can append `router.urls` to a list of existing views…
 | 
				
			||||||
    router.register(r'accounts', AccountViewSet)
 | 
					    router.register(r'accounts', AccountViewSet)
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    urlpatterns = [
 | 
					    urlpatterns = [
 | 
				
			||||||
        url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
 | 
					        url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    urlpatterns += router.urls
 | 
					    urlpatterns += router.urls
 | 
				
			||||||
| 
						 | 
					@ -68,14 +68,14 @@ For example, you can append `router.urls` to a list of existing views…
 | 
				
			||||||
Alternatively you can use Django's `include` function, like so…
 | 
					Alternatively you can use Django's `include` function, like so…
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    urlpatterns = [
 | 
					    urlpatterns = [
 | 
				
			||||||
        url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
 | 
					        url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),
 | 
				
			||||||
        url(r'^', include(router.urls))
 | 
					        url(r'^', include(router.urls))
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Router URL patterns can also be namespaces.
 | 
					Router URL patterns can also be namespaces.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    urlpatterns = [
 | 
					    urlpatterns = [
 | 
				
			||||||
        url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
 | 
					        url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),
 | 
				
			||||||
        url(r'^api/', include(router.urls, namespace='api'))
 | 
					        url(r'^api/', include(router.urls, namespace='api'))
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user