21 lines
380 B
Bash
Executable File
21 lines
380 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export PYTHONPATH=".:$PYTHONPATH"
|
|
export DJANGO_SETTINGS_MODULE="test_settings"
|
|
|
|
usage() {
|
|
echo "USAGE: $0 [command]"
|
|
echo " test - run the jsonview tests"
|
|
echo " shell - open the Django shell"
|
|
exit 1
|
|
}
|
|
|
|
case "$1" in
|
|
"test" )
|
|
django-admin.py test ratelimit ;;
|
|
"shell" )
|
|
django-admin.py shell ;;
|
|
* )
|
|
usage ;;
|
|
esac
|