Skip to main content

Django project generator

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beget-0.1.2.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file beget-0.1.2.tar.gz.

File metadata

  • Download URL: beget-0.1.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for beget-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2e19786750ac0bd5449c5f2b4b826287e3775dc93989bacc528376d4cf39f592
MD5 3a07451fa0298bc9b3b8d00c55d424d4
BLAKE2b-256 128ec7b5eb0c62c66f2f256676253c2522ca5bed6cfe79e3ca030cfc88b4b1db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page