A batteries-included Django starter project. For a production-ready version see the book Django for Professionals.
- Django 3.1 & Python 3.8
- Install via Pip, Pipenv, or Docker
- User log in/out, sign up, password reset via django-allauth
- Static files configured with Whitenoise
- Styling with Bootstrap v4
- Debugging with django-debug-toolbar
- DRY forms with django-crispy-forms
DjangoX can be installed via Pip, Pipenv, or Docker depending upon your setup. To start, clone the repo to your local computer and change into the proper directory.
$ git clone https://github.com/wsvincent/djangox.git $ cd djangox $ python3 -m venv djangox $ source djangox/bin/activate (djangox) $ pip install -r requirements.txt (djangox) $ python manage.py migrate (djangox) $ python manage.py createsuperuser (djangox) $ python manage.py runserver # Load the site at http://127.0.0.1:8000 $ pipenv install $ pipenv shell (djangox) $ python manage.py migrate (djangox) $ python manage.py createsuperuser (djangox) $ python manage.py runserver # Load the site at http://127.0.0.1:8000 $ docker build . $ docker-compose up -d $ docker-compose exec web python manage.py migrate $ docker-compose exec web python manage.py createsuperuser # Load the site at http://127.0.0.1:8000 For Docker, the INTERNAL_IPS configuration in config/settings.py must be updated to the following:
# config/settings.py # django-debug-toolbar import socket hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) INTERNAL_IPS = [ip[:-1] + "1" for ip in ips]# Run Migrations (djangox) $ python manage.py migrate # Create a Superuser (djangox) $ python manage.py createsuperuser # Confirm everything is working: (djangox) $ python manage.py runserver # Load the site at http://127.0.0.1:8000 Contributions, issues and feature requests are welcome! See CONTRIBUTING.md.
Give a βοΈ if this project helped you!
