Merge pull request #12851 from fazchow/patch-1

Update django.md
This commit is contained in:
Usha Mandya
2022-04-22 11:41:50 +01:00
committed by GitHub

View File

@@ -133,6 +133,7 @@ In this step, you create a Django starter project by building the image from the
$ ls -l
drwxr-xr-x 2 root root composeexample
drwxr-xr-x 3 root root data
-rw-rw-r-- 1 user user docker-compose.yml
-rw-rw-r-- 1 user user Dockerfile
-rwxr-xr-x 1 root root manage.py
@@ -142,9 +143,11 @@ In this step, you create a Django starter project by building the image from the
If you are running Docker on Linux, the files `django-admin` created are
owned by root. This happens because the container runs as the root user.
Change the ownership of the new files.
Do not change the permission of the data folder where Postgres has its file, otherwise Postgres will not be able to start due to permission issues.
```console
$ sudo chown -R $USER:$USER .
$ sudo chown -R $USER:$USER composeexample manage.py
```
If you are running Docker on Mac or Windows, you should already