Wunki's Django Template
Table of Contents
After doing a gazillion Django projects I saw some recurring patterns. This project template for Django is the template I use for new projects. It contains the configuration and setup for the following packages:
By using this template, you get the following benefits out of the box:
Static and media files are served correctly in development and production.
While developing, Celery runs on your development database. In production it switches to RabbitMQ.
Sensible directory layout. Your media and static files will be copied into the
publicdirectory. They already contain a
.gitignorebecause those files should not be in Git.
Email is setup for you, mails are sent with an actual sender and you can debug on port
1025with the Python
Start a new Django project with this template:
django-admin.py startproject <project_name> --template=https://github.com/wunki/wunki-django-template/archive/master.zip
Go to the directory and install the requirements:
pip install -r requirements.txt
Sync and migrate:
./manage.py syncdb ./manage.py migrate
Run the server and you can find your new project at: http://localhost:8000.