Yeoman generator that scaffolds out a Django 1.7 base template with HTML5Boilerplate and Twitter Bootstrap.
This template is based on the work of Two Scoops of Django and Xenith, as well as experience with other Django layouts/project templates.
This project template is designed for Django 1.7.
Install generator-django-base
from npm:
npm install -g generator-django-base
Make a virtualenv and cd
into it:
virtualenv myproject --no-site-packages
cd myproject
Make your project directory and cd
into it:
mkdir myproject && cd $_
Run yo django-base
:
yo django-base
You get the following directory structure:
.
├── project
│ ├── base
│ ├── models.py
│ ├── urls.py
│ └── views.py
│ ├── static
│ ├── css
│ ├── img
│ └── js
│ ├── templates
│ ├── _layouts
│ ├── base
│ ├── 403.html
│ ├── 404.html
│ └── 500.html
│ ├── project
│ ├── settings
│ ├── base.py
│ ├── local.py
│ └── test.py
│ ├── urls.py
│ └── wsgi.py
├── requirements
│ ├── base.txt
│ ├── local.txt
│ └── test.txt
├── .gitignore
├── bower.json
├── package.json
├── README.md
└── requirements.txt
By default, this project template includes:
A set of basic templates built from HTML5Boilerplate 4.1.0 and Twitter Bootstrap 3.2.0 (located in the base app, with css and javascript loaded from CloudFlare CDN by default).
Templating
- django_compressor: for compressing javascript/css/less/sass
Security
- bcrypt: uses bcrypt for password hashing by default
Background Tasks
- Celery
Migrations
- Django built-in migrations
Caching
- python-memcached
Admin
- django-debug-toolbar: for development and production (enabled for superusers)
- Add testing
- Add app generator
- Add bower components
- Add grunt
- more will come...