Andrew McCloud

  • Random
  • Archive
  • RSS

My Django 1.4 Project Template

Django supports custom project templates as of 1.4. This is a feature i’ve been dreaming for and since have created what I consider - and hope - is an improved project template for most. 

https://github.com/amccloud/django-project-skel/

Changes and additions

  • Global templates, static, and fixtures directory.
  • Collects static and media into public/{static,media} respectively.
  • Django admin activated by default.
  • Django timezone setting changed to UTC for sanity.
  • HTML 5 base template with simple 404 and 500 error templates.
  • Discourages storing credentials and secrets in the repository.
  • Encourages the use of local_settings.py and accompanying __local_settings.py template.
  • Encourages the use of virtualenv and virtualenvwrapper.
  • Encourages the use of pip and requirements.txt.
  • Encourages the use of git.
  • Includes a .gitignore for the usual junk.
  • Automatically builds a README with installation notes.

How to use

django-admin.py startproject --template https://github.com/amccloud/django-project-skel/zipball/master --extension py,md yourprojectname

Contribute on GitHub

    • #django
    • #1.4
    • #opensource
  • 1 year ago
  • 11
  • Comments
  • Permalink
  • Share
    Tweet

11 Notes/ Hide

  1. matagus likes this
  2. e-mechanism likes this
  3. r4vi likes this
  4. amccloud posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

I make web.

Co-Founder of Pixelcloud.com
Django & Backbone.js consulting.

Me, Elsewhere

  • amccloud on Forrst
  • @amccloud on Twitter
  • Facebook Profile
  • Google
  • My Skype Info
  • amccloud on github
  • Xbox Live Profile
  • RSS
  • Random
  • Archive
  • Mobile

© 2011 Andrew McCloud. Effector Theme by Carlo Franco.

Powered by Tumblr