Skip to main content

Start Django dev server faster

Project description

Django shortcuts

You spend too much time typing python3 manage.py

badge

The tool is used by Uptrader team for more then two years

It's a fork of django-shortcuts by Johannes Gorset

Features

  • shorter aliases for built-in commands
  • config files for user-defined shortcuts
  • works from any project subdirectory
$ python3 manage.py shell
$ cd any/project/subdirectory
$ d s  # the same

Installation

$ pip3 install django-shts3

Usage

PyPi package installs django and d binaries. Arguments with - at the begining before command are eaten by the Python interpretator.

$ django <command or shortcut>

$ d <command or shortcut>

Default shortcuts

Alias Command
c collectstatic
r runserver
s / sh shell
t test
m migrate
mkm makemigrations
csu createsuperuser
cpw changepassword
sa startapp

Customization

The program loads extra aliases from .django_shts3 file in project directory and in home directory.

Example:

alias @@@ command
m @@@ migrate

Example:

I have a docker container with Django and I should bind to 0.0.0.0:8000 on runserver command, so I have:

$ cat .django_shts3
r @@@ runserver 0.0.0.0:8000

That allows me to start Django server like:

$ d r

Contributing

Pull requests are welcome!

Please report all problems to GitLab issues

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-shts3-5.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

django_shts3-5.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file django-shts3-5.0.tar.gz.

File metadata

  • Download URL: django-shts3-5.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for django-shts3-5.0.tar.gz
Algorithm Hash digest
SHA256 889c20d47f5b2aa50f0e248acf90c8f602dd6c67236da6d85dd85d13af2209ab
MD5 39ad69d430180fff90c4708735c42982
BLAKE2b-256 963d9f62f650d7f64030ec6dd9f0f7c3df407f2ad0fa0ec052ea01a3d5e9eb4c

See more details on using hashes here.

File details

Details for the file django_shts3-5.0-py3-none-any.whl.

File metadata

  • Download URL: django_shts3-5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for django_shts3-5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1758ce9095c41d0d1db34ab2ae3841ac26f30dbe8fc727221eb8fa094c9d36b6
MD5 805518e9a222387f067075e18ee3d76d
BLAKE2b-256 c53379dd7c70f6bfbbbcddeeb63d56d04af25af4f5e192fdbab29f34b05f77f9

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