You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
It sounds like the SITE_ID attribute could be replaced by a call to get_current_site(request) in the Photologue source code.
If you want to modify the source code and raise a pull request, I'll be happy to take a look at it.
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!
The text was updated successfully, but these errors were encountered: