From a39bcdb7b8520608c6a814c32f8de135d1c90bda Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 25 Jun 2022 18:38:58 +0530 Subject: [PATCH] feat: disable i8ln as it's not implemented yet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Django’s internationalization hooks are on by default, and that means there’s a bit of i18n-related overhead in certain places of the framework. If you don’t use internationalization, you should take the two seconds to set USE_I18N = False in your settings file. Then Django will make some optimizations so as not to load the internationalization machinery. # Please enter the commit message for your changes. Lines starting ref: https://docs.djangoproject.com/en/4.0/topics/i18n/translation/ --- dashboard/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/settings.py b/dashboard/settings.py index 2f5fca9..5422eae 100644 --- a/dashboard/settings.py +++ b/dashboard/settings.py @@ -118,7 +118,9 @@ LANGUAGE_CODE = "en-us" TIME_ZONE = "UTC" -USE_I18N = True +# not yet implemented so disabling as it provides performance benefits +# ref: https://docs.djangoproject.com/en/4.0/topics/i18n/translation/ +USE_I18N = False USE_TZ = True