generator-django-base
v0.1.4
Published
Scaffold out a Django 1.7 web app with front-end support
Downloads
8
Maintainers
Readme
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-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
What 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.txt
Features
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)