Add simple /robots.txt support
This commit is contained in:
parent
7090db3c37
commit
5aa4eed816
3 changed files with 14 additions and 2 deletions
|
@ -41,7 +41,7 @@ urlpatterns = [
|
|||
url('^auth/', include('lemonauth.urls')),
|
||||
url('^s/', include('shorturls.urls')),
|
||||
|
||||
url(r'^sitemap\.xml$', sitemap.index, maps),
|
||||
url(r'^sitemap\.xml$', sitemap.index, maps, name='sitemap'),
|
||||
url(r'^sitemaps/(?P<section>.+)\.xml$', sitemap.sitemap, maps,
|
||||
name='django.contrib.sitemaps.views.sitemap'),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue