Code Monkey home page Code Monkey logo

django-project-templates's Introduction

Django-project-templates

This project contains templates for creating a new Django project. It’s like running django-admin.py startproject but it creates a more complete application skeleton.

All you need to do is install the package from PyPi like so. Note that it will install PasteScript, Cheetah and Fabric. So you may want to create a new virtualenv.

python easy_install django-project-templates

Alternatively you can install it from a git clone with:

python setup.py install

And then creating a project skeleton is as simple as:

paster create --template=django_project example_project

Note that this project skeleton is still in flux. It definitely contains some things that are personal preference but it hopefully makes up for it with useful tools like a reasonably complete fabric based deployment setup and configs for CruiseControl. And yes, more documentation would be nice.

News apps template

The folks over at the Chicago Tribune have kindly contributed a template they use for their projects. You can find more about that on this blog post.

paster create --template=newsapps_project example_project

The newsapps_project template is very similar to django_project. Major differences include:

  • A much larger fabric deployment script with a bunch of goodies
  • Removed and refactored config directories. There are now dirs for production, staging and common.
  • Tightly integrated with Chicago Tribune’s News apps Amazon EC2 Image (ami-ff17fb96 on us-east)
  • Removed CruiseControl stuff.
  • Added a ‘manage’ script in the project root to make management commands accessible.

Update: New template!

I added a new template layout. It’s much simpler than the News Apps template; very similar to Django’s out-of-the-box project layout. It follows the default pattern, but includes all the fancy extra stuff you need to deploy your project as a wsgi application in separate staging and production environments.

To use the simple project template, follow the installation instructions below and then create a new project:

paster create --template=simple_project exampleproject

When you name your project, use alphanumeric characters only. The project name is used throughout the template for things such as database usernames and python packages, so it has to be über-compatible. If you have a special database name or something you have to use, don’t fret, you can customize all the settings. We just like opinionated software.

django-project-templates's People

Contributors

garethr avatar onyxfish avatar ryanmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.