Ticket #12063: django-site-cache.patch

File django-site-cache.patch, 678 bytes (added by patrys, 6 years ago)

Same patch in svn diff format

  • django/contrib/sites/models.py

     
    1212        """
    1313        from django.conf import settings
    1414        try:
    15             sid = settings.SITE_ID
     15            sid = int(settings.SITE_ID)
    1616        except AttributeError:
    1717            from django.core.exceptions import ImproperlyConfigured
    1818            raise ImproperlyConfigured("You're using the Django \"sites framework\" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting to fix this error.")
Back to Top