Starting a new Django site

We will now create a new Docker container using the docker run command. The -v "$(pwd)":/app parameter creates a bind-mount of the current directory to /app in the container. Files in the current directory are shared between the host and the guest systems.

The second untagged parameter django defines the image that we use for the creation of a container. The rest of the command string is as follows:

django django-admin startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env crypto_stats

This is passed to the guest container for execution. It creates a new Django project named crypto_stats using the edge template by Arun Ravindran (https://django-edge.readthedocs.io/en/latest/):

docker run -v "$(pwd)":/app django django-admin startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env crypto_stats

Upon successful execution, you should be able to see the following files and directories if you go inside the newly created crypto_stats folder:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.95.56