From 4b447d28f7f05e5e0dafaf68ca1de7c524c1da79 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Tue, 14 May 2024 09:39:00 +0200 Subject: [PATCH] Fix error with robots.txt --- app/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')), -- 2.39.5