summaryrefslogtreecommitdiff
path: root/django/contrib/sites
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2006-08-27 12:46:39 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2006-08-27 12:46:39 +0000
commit77ab11be452d2da50925d5d2e3eed1b96ba7eca0 (patch)
tree26601fd7800644b26195dd3331d75969ac33e826 /django/contrib/sites
parent89fa97b8374131614698bbab1544f9bdafdb66bd (diff)
downloaddjango-77ab11be452d2da50925d5d2e3eed1b96ba7eca0.tar.gz
Refs #2333 - Added 'test' target to django-admin script. Includes addition of --verbosity and --noinput options to django-admin, and a new TEST_RUNNER setting to control the tool used to execute tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/sites')
-rw-r--r--django/contrib/sites/management.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/sites/management.py b/django/contrib/sites/management.py
index 0e1a50227a..6831cab96d 100644
--- a/django/contrib/sites/management.py
+++ b/django/contrib/sites/management.py
@@ -7,9 +7,10 @@ from django.db.models import signals
from django.contrib.sites.models import Site
from django.contrib.sites import models as site_app
-def create_default_site(app, created_models):
+def create_default_site(app, created_models, verbosity):
if Site in created_models:
- print "Creating example.com Site object"
+ if verbosity >= 2:
+ print "Creating example.com Site object"
s = Site(domain="example.com", name="example.com")
s.save()