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 toINSTALLED_APPS
on the fly.django-shell: work like
./manage.py shell
but use the django-extensionsshell_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 setDEBUG_PROPAGATE_EXCEPTIONS
toTrue
so WebTest show the full traceback in tests output.django-serve: wrap the Django application in a backlash 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 toINSTALLED_APPS
andMIDDLEWARE_CLASSES
on the fly. You can also use request and post to test a single request:$ django-serve request /path
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