Skip to main content

DjangoDevKit package

Project description

DjangoDevKit

Meta package for Django developers.

Installation:

$ easy_install -U DjangoDevKit

Contain (as dependencies):

This package also install some console scripts:

  • django-admin: work like ./django-admin.py.

  • django-manage: work like ./manage.py but add django-extensions to INSTALLED_APPS on the fly.

  • django-shell: work like ./manage.py shell but use the django-extensions shell_plus

  • django-migrate: work like ./manage.py syncdb --nointput && ./manage.py migrate --noinput Run migrate only if south is installed.

  • django-test: work like ./manage.py test. Also set DEBUG_PROPAGATE_EXCEPTIONS to True so WebTest show the full traceback in tests output.

  • django-serve: wrap the Django application in a WebError middleware and serve it. It’s also serve /media/ directories found in installed apps. You can also use -t to add the django-debug-toolbar to INSTALLED_APPS and MIDDLEWARE_CLASSES on the fly. You can also use request and post to test a single request:

    $ django-serve request /path arg1=foo
    
    $ django-serve post /path arg1=foo
    
    $ django-serve help [request|post]

You can also use some aliases. Create a ~/.djangodevkitrc like this:

[aliases]
m =
    syncdb --noinput
    migrate --noinput
si =
    schemamigration --initial []
sm =
    schemamigration --auto []

[] is replace with command line arguments. This mean that:

$ django-manage sm myapp

is equal to:

$ ./manage.py schemamigration --auto myapp

Notices that aliases are not listed in django-manage’s help

News

1.0.1 (2014-01-15)

Take care if DJANGO_SETTINGS_MODULE is already set

1.0

Make it work with django 1.4+ and virtualenv

Add aliases machinery

0.8.3

Windows bug fix

0.8.1

Add all eggs to pkg_resources.working_set

0.8

No longer use twod.wsgi

0.6

Small fixe to work with twod.wsgi

0.2

Add MediaApp to serve media directories

0.1

Initial public release.

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

DjangoDevKit-1.0.1.zip (12.3 kB view details)

Uploaded Source

File details

Details for the file DjangoDevKit-1.0.1.zip.

File metadata

  • Download URL: DjangoDevKit-1.0.1.zip
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for DjangoDevKit-1.0.1.zip
Algorithm Hash digest
SHA256 c1851704f65fe717829c725d9e71621246335e91311220ddbd0e4c068e14d2f4
MD5 f0a880e8fde02addcbfa7d6cf1e73743
BLAKE2b-256 24ebef12276dcd107e962aaa36dc01e06bdd00a0b1072d6c637ce63030ca60c4

See more details on using hashes here.

Provenance

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