]> git.parisson.com Git - telemeta.git/commitdiff
Update project urls.py
authorThomas Fillon <thomas@parisson.com>
Thu, 20 Apr 2017 09:09:57 +0000 (11:09 +0200)
committerThomas Fillon <thomas@parisson.com>
Thu, 20 Apr 2017 09:09:57 +0000 (11:09 +0200)
Change mimetype to content_type

app/urls.py

index 317b6d4c849f1857074803c15b931e14cbdafd3c..3628e8eba499725ae449ce579b00b36ef64946fe 100644 (file)
@@ -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")),
     ]