You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker compose run web django-admin startproject composeexample .
...
File "/usr/local/lib/python3.13/site-packages/django/core/management/commands/startproject.py", line 2, in <module>
from django.core.management.templates import TemplateCommand
File "/usr/local/lib/python3.13/site-packages/django/core/management/templates.py", line 1, in <module>
import cgi
ModuleNotFoundError: No module named 'cgi'
The cgi module was removed from Python, such that django crashes when used with the latest official Python Docker image. The Dockerfile base image should be specified to avoid this issue. For example:
The https://github.com/docker/awesome-compose/blob/master/official-documentation-samples/django/README.md example instructions fail with
The
cgi
module was removed from Python, such that django crashes when used with the latest official Python Docker image. The Dockerfile base image should be specified to avoid this issue. For example:works as expected.
The text was updated successfully, but these errors were encountered: