0.1.4 • Published 11 years ago
generator-django-base v0.1.4
Django 1.7 generator 

Yeoman generator that scaffolds out a Django 1.7 base template with HTML5Boilerplate and Twitter Bootstrap.
About
This template is based off of 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.
Requirements
Getting Started
Install generator-django-base from npm:
npm install -g generator-django-baseMake a virtualenv and cd into it:
virtualenv myproject --no-site-packages
cd myprojectMake your project directory and cd into it:
mkdir myproject && cd $_Run yo django-base:
yo django-baseWhat do you get?
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.txtFeatures
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)