Skip to content

metricmatters/djangox_final

 
 

Repository files navigation

A batteries-included Django starter project. To learn more visit LearnDjango.com.

Getting Started with Docker

Use the following commands to build the Docker image, run the container, and execute the standard commands within Docker.

$ sudo docker-compose up -d --build
$ sudo docker-compose exec web python manage.py migrate
$ sudo docker-compose exec web python manage.py createsuperuser
# Load the site at http://127.0.0.1:8000

Starting up with ngrok

Use the following commands to start the ngrok site, which allows the user to see MM website on a publically facing http address.

docker run --net=host -it -e NGROK_AUTHTOKEN=2bsabaYSp28A1B1Q5cwASLC5W0H_5RDUBPMRnKgCMMSrmNrWZ ngrok/ngrok:latest http --domain=officially-fast-condor.ngrok-free.app 8000

Running docker container commands

Make sure to run everything within the docker container when making updates, etc.

sudo docker-compose exec web ..... 

Oftentimes this will look like: 
sudo docker-compose exec web python manage.py check 
... or other django related commands

🚀 Features



Next Steps

About

Django starter project with 🔋

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.8%
  • HTML 20.1%
  • CSS 2.2%
  • JavaScript 1.6%
  • Dockerfile 0.3%