awesome-compose icon indicating copy to clipboard operation
awesome-compose copied to clipboard

Update README for Cross-Platform Django Project Setup in django awesome-compose

Open SaadHusayn opened this issue 1 year ago • 2 comments

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.

### Tasks

SaadHusayn avatar Aug 27 '24 15:08 SaadHusayn

sudo is a command on macOS.

Also, sudo in this command is not necessarily required on Linux, either, depending on how you've set up your system.

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.

weslord avatar Dec 21 '24 20:12 weslord

Whoops, I spoke too soon. My apologies.

Looks like running this without sudo on Linux won't create the data/db directory, and running it with sudo on macOS (with Docker desktop, at least) causes some pretty strange problems with the build step.

weslord avatar Dec 21 '24 22:12 weslord