From: Yoan Le Clanche Date: Tue, 14 May 2024 07:39:00 +0000 (+0200) Subject: Fix error with robots.txt X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4b447d28f7f05e5e0dafaf68ca1de7c524c1da79;p=teleforma.git Fix error with robots.txt --- diff --git a/app/urls.py b/app/urls.py index 84b68022..19d10315 100644 --- a/app/urls.py +++ b/app/urls.py @@ -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')),