Giter VIP home page Giter VIP logo

djangobox's Introduction

Note about usage

Djangobox's usefulness has declined since Django 1.6 because it's startproject command now has a default database set up. It's useful for people who...

  • ... have never used Django before (Benjamin build).
  • ... have never set up Django with Heroku before (Batsunan and jiro build).
  • ... want an alternative way to create Django projects.

If you want to create a serious project have a look at a Django skeleton like django-twoscoops-project.

Djangobox (Deprecated, last tested on Django 1.6)

A tool to run the simplest Django builds in a few seconds.

Djangobox

Why is it useful?

Have you ever got frustrated how much tinkering it takes to just set up a minimal working Django project so you can play with models, forms, templates, views, ... ?

With Djangobox you can get a Django project running in about 10 seconds.

There are a few starting builds present (fab -l), but ultimately you'll want to costumize your own build. Just put your build template in tools/build_templates(look at the benjamin template example). After running the build command your project will be in the autocreated box directory.

Setting up Djangobox

  1. git clone https://github.com/RobrechtDR/djangobox.git
  2. cd djangobox
  3. mkvirtualenv djangobox
  4. pip install -r requirements.txt

Assuming you are still in the djangobox environment, you can now start building!

Note: For using identical commands install virtualenv with virtualenvwrapper.

Using Builds

Benjamin

The simplest Django build. Suited for Django beginners to quickly experiment with a project.

Benjamin

Run a development server

  1. fab build_benjamin:my_project
  2. cd box/my_project
  3. python manage.py runserver

Batsunan

The Benjamin build adapted for Heroku deployment.

Batsunan

If you haven't used Heroku before first do the three first steps of the quickstart guide.

Run a production server on Heroku

  1. fab build_batsunan:my_project
  2. cd box/my_project
  3. fab heroku_setup:my-project-herokuapp-name
  4. fab heroku_push

More

  • Run a local management command: fab manage_dev:dbshell
  • Run a production management command: fab manage_prod:dbshell
  • Push to heroku: heroku_push:"commit message"

Jiro

Use this if you want to do more than just experimenting in Django; if you plan on using multiple apps. Also has Heroku integration.

Jiro

Run a development server

  1. fab build_jiro:my_project
  2. cd box/my_project
  3. fab manage_dev:runserver

Make your own build

TODO: Elaborate here. For now just look at fabfile.py and tools/build_templates/benjamin as an example.

djangobox's People

Contributors

robrechtdr avatar

Stargazers

 avatar

Watchers

 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.