From 5c829458cd65dbd632cc6663efcc3d7dad97efe5 Mon Sep 17 00:00:00 2001 From: Reena-cell Date: Wed, 7 Sep 2022 23:51:16 +0200 Subject: [PATCH] /refactor perform i18n --- apimanager/.env | 2 +- apimanager/apimanager/settings.py | 7 +- apimanager/base/templates/base.html | 40 +++++----- apimanager/locale/es/LC_MESSAGES/django.mo | Bin 26079 -> 26403 bytes apimanager/locale/es/LC_MESSAGES/django.po | 85 ++++++++++----------- 5 files changed, 67 insertions(+), 67 deletions(-) diff --git a/apimanager/.env b/apimanager/.env index 1be2634..d9c9cf9 100644 --- a/apimanager/.env +++ b/apimanager/.env @@ -1 +1 @@ -OAUTH_CONSUMER_KEY = jmt0hdhzcynircdo5yxlido1kigmb2qe4d4cuacb \ No newline at end of file +OAUTH_CONSUMER_KEY = j4fl4x2jcxpojnuzql5g1vlyipd5sx1iowogm2gs \ No newline at end of file diff --git a/apimanager/apimanager/settings.py b/apimanager/apimanager/settings.py index 0e081e0..d400367 100644 --- a/apimanager/apimanager/settings.py +++ b/apimanager/apimanager/settings.py @@ -27,7 +27,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = None # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True @@ -172,6 +172,8 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.10/howto/static-files/ STATIC_URL = '/static/' +# Set this to your local directory for static files +STATIC_ROOT = os.path.join(BASE_DIR, '..', '..', 'static-collected') from django.utils.translation import gettext_lazy as _ @@ -185,8 +187,7 @@ LOCALE_PATHS = ( os.path.join(BASE_DIR, "locale/"), ) -# Set this to your local directory for static files -STATIC_ROOT = os.path.join(BASE_DIR, '..', '..', 'static-collected') + LOGGING = { diff --git a/apimanager/base/templates/base.html b/apimanager/base/templates/base.html index 7c48234..36eda4c 100644 --- a/apimanager/base/templates/base.html +++ b/apimanager/base/templates/base.html @@ -1,5 +1,5 @@ -{% load static i18n %} - +{% load static %} +{% load i18n %} @@ -47,18 +47,18 @@