Skip to content

Yeoman generator that scaffolds out a Django 1.7 base template with HTML5Boilerplate and Twitter Bootstrap.

Notifications You must be signed in to change notification settings

pieer/generator-django-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django 1.7 generator Stories in Ready Build Status

Generator Django Base

Yeoman generator that scaffolds out a Django 1.7 base template with HTML5Boilerplate and Twitter Bootstrap.

About

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.

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)

Todo

  • Add testing
  • Add app generator
  • Add bower components
  • Add grunt
  • more will come...

License

MIT License

About

Yeoman generator that scaffolds out a Django 1.7 base template with HTML5Boilerplate and Twitter Bootstrap.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published