]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/robotstxt/urls.py
Merge pull request #45 from udacity/sort_modes
[osqa.git] / forum_modules / robotstxt / urls.py
index 0706886a55403df6909f9c59445493f1e799748b..ddcac3bccdaa68444ab5f9adf5b9d74e4697ea01 100644 (file)
@@ -1,7 +1,7 @@
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url, include
 from django.http import  HttpResponse
 import settings
 
 urlpatterns = patterns('',
-    (r'^robots.txt$',  lambda r: HttpResponse(settings.ROBOTS_FILE.value)),
+    (r'^robots.txt$',  lambda r: HttpResponse(settings.ROBOTS_FILE.value, content_type='text/plain')),
 )