From 443f52e49d20692588d1d40d7edf52127b3d342a Mon Sep 17 00:00:00 2001 From: SDE Date: Wed, 21 Jun 2023 14:36:47 +0300 Subject: [PATCH] 0.0.6 fix lang model --- TWB/settings.py | 7 +++++-- TWB/urls.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/TWB/settings.py b/TWB/settings.py index 4e61559..fd6902c 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -118,14 +118,17 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/4.2/topics/i18n/ -LANGUAGE_CODE = 'ru-RU' +LANGUAGE_CODE = 'ru' TIME_ZONE = 'Europe/Minsk' USE_I18N = True -USE_TZ = True +# USE_TZ = True +USE_L10N = True + +USE_TZ = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.2/howto/static-files/ diff --git a/TWB/urls.py b/TWB/urls.py index ed5f9b0..198900a 100644 --- a/TWB/urls.py +++ b/TWB/urls.py @@ -9,6 +9,7 @@ urlpatterns = [ path('ckeditor/', include('ckeditor_uploader.urls')), # path('', include('GeneralApp.urls')), +# url(r'^i18n/', include('django.conf.urls.i18n')), ] from django.conf.urls.i18n import i18n_patterns