ecometrica / django-multisite

Multisite in django — use one Django app to serve multiple domains
BSD 3-Clause "New" or "Revised" License
138 stars 42 forks source link

Insert 'default=1' in README.rst #31

Closed jedie closed 8 years ago

jedie commented 8 years ago

e.g.: For Django-CMS is a default needed. Otherwise:

...
  File "/home/jens/PyLucid_env/lib/python3.5/site-packages/cms/utils/conf.py", line 228, in get_languages
    if settings.SITE_ID != hash(settings.SITE_ID):
  File "/home/jens/PyLucid_env/lib/python3.5/site-packages/multisite/threadlocals.py", line 93, in __hash__
    return self.__int__()
  File "/home/jens/PyLucid_env/lib/python3.5/site-packages/multisite/threadlocals.py", line 59, in __int__
    return self.get_default()
  File "/home/jens/PyLucid_env/lib/python3.5/site-packages/multisite/threadlocals.py", line 123, in get_default
    raise ValueError('SITE_ID has not been set.')
ValueError: SITE_ID has not been set.
mghughes commented 8 years ago

Merged - thanks for the contribution!