Skip to content

Commit 0e73b9d

Browse files
committed
Update README.rst
1 parent cff8697 commit 0e73b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The recommended way to install django-url-robots is with `pip <http://pypi.pytho
2525
3. Add url_robots view to your root URLconf::
2626

2727
urlpatterns += patterns('',
28-
url(r'^robots.txt$', 'url_robots.views.robots_txt'),
28+
url(r'^robots\.txt$', 'url_robots.views.robots_txt'),
2929
)
3030

3131
4. Describe rules by boolean keyword arguments ``robots_allow`` and ``robots_disallow`` using for it ``url_robots.utils.url`` instead ``django.conf.urls.defaults.url``::
@@ -44,7 +44,7 @@ Settings
4444
In this moment there are only one option to define template of ``robots.txt`` file::
4545

4646
urlpatterns += patterns('',
47-
url(r'^robots.txt$', 'url_robots.views.robots_txt', {'template': 'my_awesome_robots_template.txt'}),
47+
url(r'^robots\.txt$', 'url_robots.views.robots_txt', {'template': 'my_awesome_robots_template.txt'}),
4848
)
4949

5050
Example

0 commit comments

Comments
 (0)