Skip to content

Commit cb40bab

Browse files
HassanAbouelelajchristgit
authored andcommitted
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]>
1 parent 20a7264 commit cb40bab

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

pydis_site/apps/api/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
default_app_config = 'pydis_site.apps.api.apps.ApiConfig'

pydis_site/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@
200200
LANGUAGE_CODE = 'en-us'
201201
TIME_ZONE = 'UTC'
202202
USE_I18N = True
203-
USE_L10N = True
204203
USE_TZ = True
205204

206205
# Static files (CSS, JavaScript, Images)

0 commit comments

Comments
 (0)