mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed url translation docs.
``include`` calls shouldn't have a $ sign at the end of the url pattern.
This commit is contained in:
		
				
					committed by
					
						 Florian Apolloner
						Florian Apolloner
					
				
			
			
				
	
			
			
			
						parent
						
							c864b36ba1
						
					
				
				
					commit
					946d3d9f84
				
			| @@ -890,7 +890,7 @@ prepend the current active language code to all url patterns defined within | ||||
|  | ||||
|     urlpatterns += i18n_patterns('', | ||||
|         url(r'^about/$', 'about.view', name='about'), | ||||
|         url(r'^news/$', include(news_patterns, namespace='news')), | ||||
|         url(r'^news/', include(news_patterns, namespace='news')), | ||||
|     ) | ||||
|  | ||||
|  | ||||
| @@ -945,7 +945,7 @@ URL patterns can also be marked translatable using the | ||||
|  | ||||
|     urlpatterns += i18n_patterns('', | ||||
|         url(_(r'^about/$'), 'about.view', name='about'), | ||||
|         url(_(r'^news/$'), include(news_patterns, namespace='news')), | ||||
|         url(_(r'^news/'), include(news_patterns, namespace='news')), | ||||
|     ) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user