View Code? Open in Web Editor
NEW
This project forked from so87/django_template
template for creating a django website with docker
Shell 21.21%
Python 78.64%
HTML 0.15%
django_template's Introduction
- You need docker installed - this should also work on windows if you have git bash installed
- git clone https://github.com/so87/django_template.git
- cd django_template
- ./create-app insert your app name here
- edit A_MainSite/urls.py and start-django.sh file to point to your app you just created
- add your new app to "installed apps" in settings.py
- start developing - do "docker-compose up" to start up all the containers and visit "localhost:8080" to view what you create
- do "./django-shell.sh" to easily get a shell on your django machine. this is to run django commands while developing.
- mozilla has a great django tutorial
- create gateway network "docker network create --driver overlay gateway"
- setup traefik to allow this to be your proxy "https://docs.traefik.io/"(this might take you a several hours to understand)
- docker-compose -f docker-compose-production.yml
- troubleshoot production deployment
- eliminate vulnerabilities in packages
django_template's People
Contributors
Watchers