A project using Docker to create an environment for development with Python and Django.
To run the project, do the following steps:
- Install Docker
- Clone this repository using
git clone https://github.com/Dbof/django-docker-example.git django-docker
- Change into the cloned repository with
cd django-docker
- Build the django-docker container:
docker build -t django-docker .
- Run
sh run_docker.sh
- Done!
The code will be saved in the src
folder of the repository.
After running the Docker container, you get an interactive shell where you can run typical Django commands:
django-admin startproject
django-admin startapp
python manage.py runserver 0.0.0.0:8000
to start the built-in server. The web application will be available on http://localhost:8000/.