Skip to main content

Full-featured django project start tool.

Project description

PyPI PyPI - License

Introduction

django-start-tool is a full-featured replacement for django-admin startproject, which provides cli for creating the same django project structure.

Usage

A cli arguments are the same as startproject arguments excluding for a few changes.

--template

Changes:

  • Creating from archive only supports the zip archive.

  • Creating from remote source only supports the GitHub repositories.


--files

This parameter is a replacement for --extension and --name parameters.

It takes space-separated glob patterns, like *.env *.rst Procfile etc.


--extra

This parameter takes space-separated key value pairs, which will be available in Jinja2 template from extra object.

$ django-start \
> -t https://github.com/user/repository/archive/main.zip \
> -f '*.env' \
> -e 'db_name=mydb db_password=secret!'

.env:

DB_NAME='{{ extra.db_name }}'
DB_PASSWORD='{{ extra.db_password }}'

# Will be rendered to
DB_NAME='mydb'
DB_PASSWORD='secret!'

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

django-start-tool-0.3.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

django_start_tool-0.3-py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 3

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