mirror of
				https://github.com/django/django.git
				synced 2025-11-04 01:47:52 +03:00 
			
		
		
		
	Made an example more readable in the URLs docs.
This commit is contained in:
		
							parent
							
								
									4e82d61400
								
							
						
					
					
						commit
						1288572d92
					
				| 
						 | 
				
			
			@ -574,10 +574,8 @@ For example::
 | 
			
		|||
        (r'^blog/(?P<year>\d{4})/$', 'year_archive', {'foo': 'bar'}),
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
In this example, for a request to ``/blog/2005/``, Django will call the
 | 
			
		||||
``blog.views.year_archive()`` view, passing it these keyword arguments::
 | 
			
		||||
 | 
			
		||||
    year='2005', foo='bar'
 | 
			
		||||
In this example, for a request to ``/blog/2005/``, Django will call
 | 
			
		||||
``blog.views.year_archive(year='2005', foo='bar')``.
 | 
			
		||||
 | 
			
		||||
This technique is used in the
 | 
			
		||||
:doc:`syndication framework </ref/contrib/syndication>` to pass metadata and
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user