nephila / djangocms-multisite

django-multisite support for DjangoCMS
BSD 3-Clause "New" or "Revised" License
26 stars 19 forks source link

NameError: name 'SiteID' is not defined #16

Closed bculpepper closed 7 years ago

bculpepper commented 7 years ago

I believe I am interpreting the instructions correctly when I replace SITE_ID = 1 in my settings.py file with SITE_ID = SiteID(default=1)

This leads to the following error. Please advise if there is something I am misunderstanding.

File "/home/vagrant/multisite_demo/multisite_demo/settings/base.py", line 81, in SITE_ID = SiteID(default=1) NameError: name 'SiteID' is not defined

Django==1.9.9 django-cms==3.3.2 django-multisite==1.3.1

Thanks!

Brandon Culpepper

bculpepper commented 7 years ago

I was able to resolve this. Turns out I was missing the following critical line in my settings.py

from multisite import SiteID

Brandon