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
The current README for the Docker Compose and Django/PostgreSQL setup includes a command to create a Django project using sudo:
sudo docker compose run web django-admin startproject composeexample .
This command is specific to Linux environments. On Windows and MacOS, running this command as is will result in an error because sudo is not recognized.
The content you are editing has changed. Please copy your edits and refresh the page.
It may be cleaner to remove sudo from the command entirely. The other documentation samples do not include it, nor do the other instances of docker compose [up/down] in that document.
Looks like running this withoutsudo on Linux won't create the data/db directory, and running it withsudo on macOS (with Docker desktop, at least) causes some pretty strange problems with the build step.
The current README for the Docker Compose and Django/PostgreSQL setup includes a command to create a Django project using sudo:
This command is specific to Linux environments. On Windows and MacOS, running this command as is will result in an error because sudo is not recognized.
Tasks
The text was updated successfully, but these errors were encountered: