From 0d9ef8d7e341da66d7cd7c9ce09b26b774e8407d Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Thu, 20 Apr 2017 11:09:57 +0200 Subject: [PATCH] Update project urls.py Change mimetype to content_type --- app/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/urls.py b/app/urls.py index 317b6d4c..3628e8eb 100644 --- a/app/urls.py +++ b/app/urls.py @@ -35,5 +35,5 @@ urlpatterns = [ # Languages url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^jsi18n/$', javascript_catalog, js_info_dict), - url(r'^robots\.txt$', lambda r: HttpResponse(robots_rules, mimetype="text/plain")), + url(r'^robots\.txt$', lambda r: HttpResponse(robots_rules, content_type="text/plain")), ] -- 2.39.5