Created
February 10, 2014 19:24
-
-
Save victorono/8922417 to your computer and use it in GitHub Desktop.
Robots in django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from django.views.generic import TemplateView | |
urlpatterns += patterns('', | |
url(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment