Skip to main content

You spend way too much time typing 'python manage.py'

Project description

You spend too much time typing python manage.py.

Usage

Django shortcuts installs a django binary that proxies Django’s manage.py and django-admin.py scripts.

$ django <command or shortcut>

$ cd any/project/subdirectory
$ django <command or shortcut>

Requirements

Some commands require additional packages

  • South

  • Haystack

  • Django Command Extensions

Shortcuts

# Django
'c'  : 'collectstatic',
'r'  : 'runserver',
'sd' : 'syncdb',
'sp' : 'startproject',
'sa' : 'startapp',
't'  : 'test',

# Shell
'd'  : 'dbshell',
's'  : 'shell',

# Auth
'csu': 'createsuperuser',
'cpw': 'changepassword',

# South
'm'  : 'migrate',
'mm' : 'makemigrations',
'sm' : 'schemamigration',
'dm' : 'datamigration',

# Haystack
'ix' : 'update_index',
'rix': 'rebuild_index',

# Django Extensions
'sk' : 'generate_secret_key',
'rdb': 'reset_db',
'rp' : 'runserver_plus',
'shp': 'shell_plus',
'url': 'show_urls',
'gm' : 'graph_models',
'rs' : 'runscript'

Installation

$ pip install django-shortcuts

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

Uploaded Source

File details

Details for the file django-shortcuts-1.6.tar.gz.

File metadata

File hashes

Hashes for django-shortcuts-1.6.tar.gz
Algorithm Hash digest
SHA256 eac6f9e2f4acdba3856046405c21382d36b66414bcd14c390f6027ac15f28ca8
MD5 5f55b768076684cb7d8e5f2172d3bbec
BLAKE2b-256 2691b4b7785279269559028e62831ca98bc45a5086236194314b43e39c227917

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