A batteries-included Django starter project. To learn more visit LearnDjango.com.
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
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
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
- Django 5.0 & Python 3.12
- Install via Pip or Docker
- User log in/out, sign up, password reset via django-allauth
- Static files configured with Whitenoise
- Styling with Bootstrap v5
- Debugging with django-debug-toolbar
- DRY forms with django-crispy-forms
- Custom 404, 500, and 403 error pages
- Add gunicorn as the production web server.
- Update the EMAIL_BACKEND and connect with a mail provider.
- Make the admin more secure.
django-allauthsupports social authentication if you need that.