Ticket #12063: django-site-cache.patch
File django-site-cache.patch, 678 bytes (added by , 15 years ago) |
---|
-
django/contrib/sites/models.py
12 12 """ 13 13 from django.conf import settings 14 14 try: 15 sid = settings.SITE_ID15 sid = int(settings.SITE_ID) 16 16 except AttributeError: 17 17 from django.core.exceptions import ImproperlyConfigured 18 18 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.")