]> git.parisson.com Git - teleforma.git/commitdiff
Fix error with robots.txt
authorYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 14 May 2024 07:39:00 +0000 (09:39 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 14 May 2024 07:39:00 +0000 (09:39 +0200)
app/urls.py

index 84b68022d1c2050c15615c49b872f5d1d6e6820f..19d10315548240c63a482a0257fdc6a3aae6da21 100644 (file)
@@ -31,7 +31,7 @@ urlpatterns = [
     url(r'^i18n/', include('django.conf.urls.i18n')),
     url(r'^jsi18n/$', JavaScriptCatalog.as_view(packages=js_info_dict), name="js_catalog"),
     url(r'^robots\.txt$', lambda r: HttpResponse(
-        "User-agent: *\nDisallow: /", mimetype="text/plain")),
+        "User-agent: *\nDisallow: /", content_type="text/plain")),
 
     url(r'^tinymce/', include('tinymce.urls')),
     #url(r'^pdfviewer/', include('webviewer.urls')),