Skip to main content

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

Release files for beget 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beget 0.1
File Size Uploaded
beget-0.1.tar.gz 4.1 kB Details

Release files / beget-0.1.tar.gz

Download URL beget-0.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2b4102a6739d19ab226976a3b850c971db3b674d1654d7c70e14556b699fe906
BLAKE2b-256 checksum
How to use checksums
8768eeabea9846dc2a1f417a2f24d8e80dff6f0e2a5ab7a07b71dbb8571dfa20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page