From 21dcb7bc378a2886e81ac7a3f7c22171ecbf5a20 Mon Sep 17 00:00:00 2001 From: "S. Andrew Sheppard" Date: Mon, 3 May 2021 11:52:31 +0900 Subject: [PATCH] ensure proper mimetype on windows --- db/project_name/settings/dev.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/project_name/settings/dev.py b/db/project_name/settings/dev.py index d676b77..f5f6c30 100644 --- a/db/project_name/settings/dev.py +++ b/db/project_name/settings/dev.py @@ -1,5 +1,6 @@ import os import sys +import mimetypes from .base import * @@ -21,6 +22,7 @@ {% else %} WQ_CONFIG_FILE = os.path.join(BASE_DIR, 'app', 'js', 'data', 'config.js') {% endif %} + mimetypes.add_type("application/javascript", ".js", True) ALLOWED_HOSTS = []