forked from jsocol/django-adminplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The start of some testing infrastructure.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
export PYTHONPATH=".:$PYTHONPATH" | ||
export DJANGO_SETTINGS_MODULE="test_settings" | ||
|
||
usage() { | ||
echo "USAGE: $0 [command]" | ||
echo " test - run the adminplus tests" | ||
echo " shell - open the Django shell" | ||
exit 1 | ||
} | ||
|
||
case "$1" in | ||
"test" ) | ||
django-admin.py test adminplus ;; | ||
"shell" ) | ||
django-admin.py shell ;; | ||
* ) | ||
usage ;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
INSTALLED_APPS = ( | ||
'django.contrib.sessions', | ||
'django.contrib.contenttypes', | ||
'django.contrib.messages', | ||
'django.contrib.auth', | ||
'django.contrib.admin', | ||
'adminplus', | ||
) | ||
SECRET_KEY = 'adminplus' |