Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SaadHusayn opened this issue Aug 27, 2024 · 2 comments

Comments

@SaadHusayn
Copy link

SaadHusayn commented Aug 27, 2024

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

Preview Give feedback
No tasks being tracked yet.
@weslord
Copy link

weslord commented Dec 21, 2024

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
Copy link

weslord commented Dec 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@weslord @SaadHusayn and others