Modified files
Dockerfile
---
+++
@@ -1,5 +1,8 @@
FROM python:3.12-bullseye
ENV PYTHONUNBUFFERED=1
+
+RUN apt update
+RUN apt install gettext -y
RUN mkdir /code
djangocourse/settings.py
---
+++
@@ -149,13 +149,17 @@
# Internationalization
# https://docs.djangoproject.com/en/5.1/topics/i18n/
-LANGUAGE_CODE = 'en-us'
+LANGUAGE_CODE = 'es' # remember to change this back to en-us!
TIME_ZONE = 'UTC'
USE_I18N = True
USE_TZ = True
+
+LOCALE_PATHS = [
+ BASE_DIR / "locale"
+]
# Static files (CSS, JavaScript, Images)