I don't see why we need to pre-install cotton

This commit is contained in:
Will Abbott 2024-11-06 15:43:32 +00:00
parent fbee378905
commit 5836a69b60
3 changed files with 4 additions and 5 deletions

View file

@ -9,7 +9,7 @@ COPY . .
RUN ["npx", "tailwindcss", "-o", "./docs_project/static/app.css"]
# Use an official Python runtime as a base image
FROM python:3.12-slim-bookworm as base
FROM python:3.12-slim-bookworm AS base
# Setup env
ENV PIP_DISABLE_PIP_VERSION_CHECK=on \

View file

@ -239,9 +239,9 @@ context = { 'today': Weather.objects.get(...) }
</c-slot>
</c-snippet>
<h3 id="excluded"><code>{{ '<c-vars />'|force_escape }}</code> are excluded from <code>{% verbatim %}{{ attrs }}{% endverbatim %}</code></h3>
<h3 id="excluded">{{ '<c-vars />'|force_escape }} are excluded from {% verbatim %}{{ attrs }}{% endverbatim %}</h3>
<p>Keys in {{ '<c-vars />'|force_escape }} are omitted from {% verbatim %}{{ attrs }}{% endverbatim %}, making them ideal for configuration attributes that shouldn't appear in HTML attributes.</p>
<p>Keys in <code>{{ '<c-vars />'|force_escape }}</code> are omitted from <code>{% verbatim %}{{ attrs }}{% endverbatim %}</code>, making them ideal for configuration attributes that shouldn't appear in HTML attributes.</p>
<c-snippet label="cotton/input_group.html">{% cotton_verbatim %}{% verbatim %}
<c-vars label errors />

View file

@ -26,5 +26,4 @@ Django = "^5.1"
heroicons = "2.6.0"
gunicorn = "20.1.0"
asgiref = ">=3.6.0,<4"
whitenoise = "6.2.0"
django-cotton = "^1.3.0"
whitenoise = "6.2.0"