Ticket #7514: 7514.diff

File 7514.diff, 524 bytes (added by Marc Fargas, 16 years ago)

Clear SITE_CACHE on syncdb.

  • 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):  
    1313            print "Creating example.com Site object"
    1414        s = Site(domain="example.com", name="example.com")
    1515        s.save()
     16    Site.objects.clear_cache()
    1617
    1718dispatcher.connect(create_default_site, sender=site_app, signal=signals.post_syncdb)
Back to Top