The menu on the home page is built fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/diazdavilajesus16-stack/Sevicheria-Mar-sabroso/llms.txt
Use this file to discover all available pages before exploring further.
.card elements inside an Owl Carousel. You can add new dishes in two ways: by editing the HTML template directly (the fastest path for a visible result) or by creating records through the Django admin panel using the Plato model. Currently the frontend template uses hardcoded HTML, so only the first method automatically shows new dishes to visitors — read the note in Method 2 for details.
Method 1 — Edit the HTML template directly
Prepare the dish image
Place your dish photo inside
static/assets/img/. The existing images use formats like .jpg, .webp, and .png. Aim for a consistent aspect ratio (roughly 4:3 or square) to match the other card thumbnails.Locate the menu carousel in home.html
Open
core/templates/home.html and find the element with class owl-carousel menu-carousel. The existing dish cards are direct children of this element.home.html
Copy the card template and fill in your dish details
Add a new Replace
.card div inside the carousel. Use this structure exactly — pay attention to the {% static %} tag, the .precio span format, and the agregarCarrito call which passes the dish name and price to the cart:home.html
YOUR-IMAGE.jpg with the filename you added in Step 1, fill in the dish name, description, and price. The second argument to agregarCarrito is a number (no quotes, no currency symbol).Method 2 — Django admin
The Django admin stores dish data in the database, but the current frontend template (
home.html) uses hardcoded HTML cards. Records created through the admin will not automatically appear in the menu carousel until the template is updated to query and render Plato objects dynamically. Use Method 1 for immediate visible results.Access the Django admin
Navigate to
/admin/ in your browser and log in with a superuser account. If you have not created one yet:Create a category if needed
Under the Menu app section, open Categorias and add a category (e.g., “Ceviches”, “Mariscos”, “Postres”). Each
Plato record requires a linked Categoria.Add a new Plato record
Open Platos and click Add plato. Fill in all fields:
| Field | Type | Notes |
|---|---|---|
nombre | CharField (200) | Dish name displayed on the menu |
descripcion | TextField | Short description shown on the card |
precio | DecimalField | Up to 8 digits, 2 decimal places (e.g., 25.00) |
imagen | ImageField | Uploaded to media/platos/ |
disponible | BooleanField | Controls whether the dish is active; defaults to True |
categoria | ForeignKey | Select from existing categories |
creado | DateTimeField | Set automatically on creation |
Connect admin data to the frontend (optional, requires dev work)
To make the menu render from the database instead of hardcoded HTML, update the Django view to pass a queryset and refactor the template. Example view change:Then replace the hardcoded cards in the template with a template loop:
views.py
home.html
Updating the promotions section
The promotions carousel works exactly like the menu carousel. Find theowl-carousel promo-carousel element in home.html and add new promotion cards using the same .card structure. Promotion images (combo photos) follow the same naming convention as dish images and are stored in the same static/assets/img/ directory: