-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Labels
Description
I'm trying to develop a multisite web in just one Django instance using sites framework. I don't need the SITE_ID attribute because I just route each subsite using get_current_site(request) call from my views. So, how can I avoid this error? Any workaround solution?
Thank you very much!
File "/var/csmant/downloads/eggs/django_photologue-3.6-py2.7.egg/photologue/views.py", line 16, in <module>
class GalleryListView(ListView):
File "/var/csmant/downloads/eggs/django_photologue-3.6-py2.7.egg/photologue/views.py", line 17, in GalleryListView
queryset = Gallery.objects.on_site().is_public()
File "/var/csmant/downloads/eggs/Django-1.10.5-py2.7.egg/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/var/csmant/downloads/eggs/django_photologue-3.6-py2.7.egg/photologue/managers.py", line 15, in on_site
return self.filter(sites__id=settings.SITE_ID)
File "/var/csmant/downloads/eggs/Django-1.10.5-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__
return getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'SITE_ID'