mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Small wording improvements to sitemaps.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									571f4639a9
								
							
						
					
					
						commit
						908f0a66e3
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -278,7 +278,7 @@ references individual sitemap files, one per each section defined in your
 | 
				
			||||||
    * The :func:`django.contrib.sitemaps.views.sitemap` view should take a
 | 
					    * The :func:`django.contrib.sitemaps.views.sitemap` view should take a
 | 
				
			||||||
      :data:`section` keyword argument.
 | 
					      :data:`section` keyword argument.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Here is what the relevant URLconf lines would look like for the example above::
 | 
					Here's what the relevant URLconf lines would look like for the example above::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   (r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps})
 | 
					   (r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps})
 | 
				
			||||||
   (r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
 | 
					   (r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
 | 
				
			||||||
| 
						 | 
					@ -288,9 +288,9 @@ This will automatically generate a :file:`sitemap.xml` file that references both
 | 
				
			||||||
:class:`~django.contrib.sitemaps.Sitemap` classes and the :data:`sitemaps` dict
 | 
					:class:`~django.contrib.sitemaps.Sitemap` classes and the :data:`sitemaps` dict
 | 
				
			||||||
don't change at all.
 | 
					don't change at all.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If one of your sitemaps is going to have more than 50,000 URLs you should 
 | 
					You should create an index file if one of your sitemaps has more than 50,000
 | 
				
			||||||
create an index file. Your sitemap will be paginated and the index will 
 | 
					URLs. In this case, Django will automatically paginate the sitemap, and the
 | 
				
			||||||
reflect that.
 | 
					index will reflect that.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Pinging Google
 | 
					Pinging Google
 | 
				
			||||||
==============
 | 
					==============
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue