A Django 1.4 base template with HTML5Boilerplate and Twitter Bootstrap
JavaScript Python Shell Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 64 commits behind xenith:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin Merge in some useful code for fabfile.py and update wsgi.py to work w… Mar 5, 2012
conf Oops. 404 and 500 error pages need to be located in the templates dir… Mar 15, 2012
db Make bcrypt the default hashing algorithm and upgrade to django-debug… Feb 23, 2012
docs
fixtures Add the fixtures directory for completeness. Mar 28, 2012
lib Move fabfile.py, and make it awesomer. This hasn't been tested yet. May 24, 2012
media Forgot to add the media directory. Mar 9, 2012
migrations Add in migrations and sphinx docs. Feb 23, 2012
project_name Added 'registration' to JINGO_EXCLUDE_APPS. This change fixes a "Temp… Jun 13, 2012
requirements Add Fabric to requirements for deployment purposes. May 16, 2012
static A bit of cleanup. Remove some extranous code that, although you will … Mar 9, 2012
test_db Make bcrypt the default hashing algorithm and upgrade to django-debug… Feb 23, 2012
.gitignore Ignore everything in the static directory. This way we can just run c… Mar 9, 2012
LICENSE Initial commit Feb 23, 2012
README.md
Vagrantfile Initial commit Feb 23, 2012
fabfile.py Move fabfile.py, and make it awesomer. This hasn't been tested yet. May 24, 2012
manage.py Add in a bunch of missing settings stuff, and cleanup some mistakes. Feb 23, 2012
vagrantconfig.yaml Initial commit Feb 23, 2012

README.md

{% if False %}

Django 1.4 Base Template

About

This template is based off of the work of Mozilla Playdoh, as well as experience with other Django layouts/templates. Playdoh is mainly setup for Mozilla's systems, and is currently only designed for Django 1.3. Some of the libraries bundled with Playdoh are also no longer necessary in Django 1.4.

This template is designed for Django 1.4's new startproject template option.

As much as I could, all the code has been updated to use the new suggested layout and functionality in Django 1.4.

Features

By default, this template includes:

A set of basic templates built from HTML5Boilerplate 3.0.3 and Twitter Bootstrap 2.0 (located in the base app)

Templating:

  • Jinja2 for templates
  • jingo to tie Jinja2 into Django
  • Markdown

Security:

  • django-session-csrf
  • bleach
  • python-bcrypt2 - uses bcrypt for password hashing by default

Background Tasks:

  • Celery

Migrations:

  • South

Caching:

  • python-memcached

From Mozilla Playdoh:

  • commonware
  • nuggets

Admin:

  • Includes django-admin-toolbar for development and production (enabled for superusers)
  • Includes two debug-toolbar panels that are useful, but are disabled until they support Django 1.4
  • django-debug-toolbar-user-panel
  • memcache-debug-panel

Testing:

  • nose and django-nose
  • pylint, pep8, and coverage

Any of these options can added, modified, or removed as you like after creating your project.

How to use this template to create your project

  • Create your virtualenv
  • Install Django 1.4
  • $ django-admin.py startproject --template https://github.com/xenith/django-base-template/zipball/master --extension py,md projectname
  • $ cd projectname
  • Select your database adapter in requirements/compiled.txt (MySQL, Postgresql, or stick with SQLite)
  • $ pip install -r requirements/dev.txt
  • $ cp projectname/settings/local-dist.py projectname/settings/local.py (local.py shouldn't be added to your source control)
  • $ ./manage.py syncdb
  • $ ./manage.py runserver

{% endif %}

{{ project_name|title }} Project

About

Describe your project here.

Prerequisites

  • Python >= 2.5
  • pip
  • virtualenv (virtualenvwrapper is recommended for use during development)

Installation

Fill out with installation instructions for your project.

License

This software is licensed under the New BSD License. For more information, read the file LICENSE.