All runtime behaviour for Gestor de Tareas Django is controlled throughDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LucPinheiro/gestor-tarea-django/llms.txt
Use this file to discover all available pages before exploring further.
mi_proyecto/settings.py, the standard Django settings module. The file is loaded automatically by manage.py via the DJANGO_SETTINGS_MODULE environment variable, which is pre-set to mi_proyecto.settings. The sections below document every setting you are likely to adjust, grouped by concern.
Security Settings
A long, random string used by Django to sign cookies, sessions, and CSRF tokens.
The repository ships with the insecure development value
'django-insecure-@hc_xr=e4$pg=)=)va7v6=2gdd%q5i#@i8wgay_9hig@_-n$wb'.
This value must be replaced before going to production. See Replacing SECRET_KEY.When
True, Django renders detailed error pages and serves static files directly.
Set to False in production — doing so also enforces ALLOWED_HOSTS validation and disables verbose tracebacks.A list of host/domain names that Django will serve. The default
['*'] accepts any host and is suitable for local development only.
In production, restrict this to your actual domain(s), e.g. ['yourdomain.com', 'www.yourdomain.com'].Database
The database backend. Defaults to Django’s built-in SQLite driver — no additional installation required for development.
Switch to
django.db.backends.postgresql or another backend for production workloads.The file-system path to the SQLite database file.
BASE_DIR resolves to the project root directory (where manage.py lives), so the database is created as gestor-tarea-django/db.sqlite3 on first migration.Internationalisation & Localisation
Sets the locale for Django’s built-in translatable strings (admin UI, form validation messages, etc.) to Spanish (Spain).
The default time zone used when storing and displaying
DateTimeField values. All task timestamps are recorded relative to this zone.Authentication Redirects
The named URL pattern that unauthenticated users are redirected to when they attempt to access a protected view. Resolves to the root path
/ (the LoginView defined in mi_proyecto/urls.py).The URL users are redirected to immediately after a successful login. Points to the main task list.
The URL users are redirected to after logging out. Points back to the login page at the root path.
Static Files
The URL prefix under which static assets (CSS, JavaScript, images) are served during development.
The absolute directory where
collectstatic copies every static file from all installed apps.
This directory is what your web server (nginx, gunicorn, etc.) should serve in production.Replacing SECRET_KEY
Load the secret key from an environment variable so it is never committed to source control:Collecting Static Files for Production
Before deploying with gunicorn (or any other WSGI server), copy all static assets intoSTATIC_ROOT so they can be served by a dedicated web server:
Run
collectstatic every time you deploy updated CSS or JavaScript. The command copies files from tareas/static/ and all other installed apps into BASE_DIR / 'staticfiles'. Your web server should be configured to serve that directory under the STATIC_URL prefix.