From 77ab11be452d2da50925d5d2e3eed1b96ba7eca0 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 27 Aug 2006 12:46:39 +0000 Subject: 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 --- django/contrib/sites/management.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'django/contrib/sites') 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() -- cgit v1.2.1