Giter Club home page Giter Club logo

beget's Introduction

Beget

Beget is a very simple tool to create a default django project. It basically does little more than django-admin.py startproject projectname with the only differences being that it creates the project in a python distribution layout complete with setup.py for ease of installation and creates media and static directories.

The default settings.py is tailored to the author's preferences i.e. TIME_ZONE is set to 'Europe/London'.

Usage

To use beget:

> beget example_project

This will create the following directories:

> tree example_project
example_project
├── example_project
│   ├── __init__.py
│   ├── media
│   ├── settings.py
│   ├── static
│   │   ├── css
│   │   ├── images
│   │   └── js
│   ├── templates
│   └── urls.py
└── setup.py

beget has only one option (excluding --help of course):

> beget -h
Usage: beget [options] projectname

Options:
  -h, --help         show this help message and exit
  -k, --like-krak3n  Create config/common.py instead of settings.py

The -k or --like-krak3n option replaces settings.py with config/common.py as is the way of the krak3n:

> beget --like-krak3n example_project && tree example_project
example_project
├── example_project
│   ├── config
│   │   ├── common.py
│   │   └── __init__.py
│   ├── __init__.py
│   ├── media
│   ├── static
│   │   ├── css
│   │   ├── images
│   │   └── js
│   ├── templates
│   └── urls.py
└── setup.py

beget's People

Contributors

rob-b 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.