diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 7564f5a..023ba9e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -9,6 +9,11 @@ server { alias /code/static; } + # Media files + location /media { + alias /code/media; + } + # Reverse proxy location / { proxy_pass http://127.0.0.1:8000; diff --git a/scripts/build_static.sh b/scripts/build_static.sh index 376e484..f74f601 100644 --- a/scripts/build_static.sh +++ b/scripts/build_static.sh @@ -1,5 +1,6 @@ # installs nvm (Node Version Manager) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash +source ~/.bashrc # download and install Node.js (you may need to restart the terminal) nvm install 22 diff --git a/users/forms/login.py b/users/forms/login.py index 62bf724..659bc48 100644 --- a/users/forms/login.py +++ b/users/forms/login.py @@ -15,7 +15,7 @@ class LoginForm(AuthenticationForm): ) ) password = forms.CharField( - label=_("Password"), + label=_("Contraseña"), strip=False, widget=forms.PasswordInput( attrs={ @@ -26,3 +26,13 @@ class LoginForm(AuthenticationForm): } ), ) + remember_me = forms.BooleanField( + label=_("Mantener sesión iniciada"), + required=False, + widget=forms.CheckboxInput( + attrs={ + "class": "w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 " + "dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-primary-600 dark:ring-offset-gray-800" + } + ) + ) diff --git a/users/templates/users/login.html b/users/templates/users/login.html index 0841c91..c5e0240 100644 --- a/users/templates/users/login.html +++ b/users/templates/users/login.html @@ -25,20 +25,20 @@ {{ field }} {% endfor %} -