Ticket #7514: 7514.diff
File 7514.diff, 524 bytes (added by , 16 years ago) |
---|
-
django/contrib/sites/management.py
diff --git a/django/contrib/sites/management.py b/django/contrib/sites/management.py index 6831cab..5cecfb4 100644
a b def create_default_site(app, created_models, verbosity): 13 13 print "Creating example.com Site object" 14 14 s = Site(domain="example.com", name="example.com") 15 15 s.save() 16 Site.objects.clear_cache() 16 17 17 18 dispatcher.connect(create_default_site, sender=site_app, signal=signals.post_syncdb)