Skip to main content

`dj cmd` is a Django shortcut command.

Project description

Build Status

Tired of typing python manage.py runserver? Just

pip install dj-cmd

and then

dj run

from any project’s subdirectory.

Features

  • saves typing

  • automatically locates manage.py script in current or parent directories

  • works great with virtualenv and on Windows

Commands

List of command aliases is a matter of personal taste, so go ahead and adjust it by forking the project and adding yours to the aliases.py file.

Currently supported commands:

  • run - runserver

  • any valid manage.py command

Config file

Alternatively, additional aliases can be specified with the ~/dj.ini file.

If the .dj.ini config file is present in the user’s home directory, it is used to populate list of command aliases.

Example of the config file:

[commands]
h=help
rs=runserver

License

dj-cmd is released under the BSD license.

Similar projects

This is not the first project of this kind. Other may suits you better, this works well for me.

Other Resources

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

dj-cmd-0.2.zip (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dj_cmd-0.2-py2.7.egg (5.8 kB view details)

Uploaded Egg

File details

Details for the file dj-cmd-0.2.zip.

File metadata

  • Download URL: dj-cmd-0.2.zip
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj-cmd-0.2.zip
Algorithm Hash digest
SHA256 9a00cca84dcec80277c067b709509985a4dd501f546dcb61fae2692d33e0f9fa
MD5 1369c444a82ba2380ebb68bd14d7143e
BLAKE2b-256 a4d7d1665a740d807d35cd8e8e35c9078d5db1e7de02dd4bb0bb2b5eaa87c3a7

See more details on using hashes here.

File details

Details for the file dj_cmd-0.2-py2.7.egg.

File metadata

  • Download URL: dj_cmd-0.2-py2.7.egg
  • Upload date:
  • Size: 5.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj_cmd-0.2-py2.7.egg
Algorithm Hash digest
SHA256 25c88fe472fa793948aa04050e698134a113ad5852bc56f2dc18170aabc2e831
MD5 a1e6f1b31cb78c1ac73b4dd71b3553c6
BLAKE2b-256 4ad4a644062368932f9557f455a2ca9adafc2d2da9f45ed02adb156001cdfa48

See more details on using hashes here.

Supported by

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