diff options
author | 2022-08-19 00:46:39 +0400 | |
---|---|---|
committer | 2022-09-04 18:52:01 +0200 | |
commit | cb40babfb49fb3ec7e0a5c1ba4c68d3cce4df91a (patch) | |
tree | 59f8dfd2aa5c52da0197a4b1990306c10b51f92a | |
parent | Fix grammar in contributing guide (#771) (diff) |
Fix Django Deprecation Warnings
Removes a few features which were deprecated in django 4.0. Running with
warnings enabled shows no other errors.
USE_L10N was deprecated, and is now enabled by default. In future
versions of django, it'll be impossible to turn localization off.
Explicitly defining the custom_app_config for the API app is no longer
necessary as django can pick it up on its own.
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r-- | pydis_site/apps/api/__init__.py | 1 | ||||
-rw-r--r-- | pydis_site/settings.py | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/pydis_site/apps/api/__init__.py b/pydis_site/apps/api/__init__.py index afa5b4d5..e69de29b 100644 --- a/pydis_site/apps/api/__init__.py +++ b/pydis_site/apps/api/__init__.py @@ -1 +0,0 @@ -default_app_config = 'pydis_site.apps.api.apps.ApiConfig' diff --git a/pydis_site/settings.py b/pydis_site/settings.py index bbf1d3aa..e08a2630 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -200,7 +200,6 @@ AUTH_PASSWORD_VALIDATORS = [ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True -USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) |