django-robots-txt

Simple robots.txt app for Django
Download

django-robots-txt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Nicolas Kuttler
  • Publisher web site:
  • http://github.com/nkuttler/

django-robots-txt Tags


django-robots-txt Description

django-robots-txt is a simple Django app to create a robots.txt for Django. It has no models at all and you're supposed to edit a template to update the robots.txt file. I just got tired of copy & pasting this into my apps.See the robots page for details what the file should look like.UsageGet django-robots-txt into your python path:pip install django-robots-txtAdd robots_txt to your INSTALLED_APPS in settings.py:INSTALLED_APPS = ( ..., 'robots_txt', ...,)Add a robots.txt view to your root urlconf (urls.py):from django.conf.urls.defaults import patterns, include, urlfrom robots_txt.views import RobotsTextViewurlpatterns = patterns('', ..., url(r'^robots.txt$', RobotsTextView.as_view()), ...,)This urlconf entry is also supported:urlpatterns = patterns('', ..., url(r'', include('robots_txt.urls')), ...,)Create your custom robots.txt file in one of your template directories under robots_txt/robots.txt. The default template is empty.Product's homepage


django-robots-txt Related Software