Giter VIP home page Giter VIP logo

generator-django-base's Introduction

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

generator-django-base's People

Contributors

marcosantonocito avatar topwebmaster avatar

Watchers

James Cloos 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.