X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..87761a02340d63155104e92a18983e3d01c6bdbb:/forum_modules/robotstxt/urls.py diff --git a/forum_modules/robotstxt/urls.py b/forum_modules/robotstxt/urls.py index 0706886..ddcac3b 100644 --- a/forum_modules/robotstxt/urls.py +++ b/forum_modules/robotstxt/urls.py @@ -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')), )