When I am doing the flatpage tutorial, I was getting error for SITE_ID
not being set. I inserted SITE_ID=1
in the settings file and everything worked fine. But I don't know what this actually means.
I read through the django docs
. but I am not totally clear what its use.
when will I use something like SITE_ID=2.
On the same note, I used the following snippet in my code without actually knowing what it does:
current_site=Site.objects.get_current()
I assume this has something to do with SITE_ID
but may be not.
Some example to demonstrate where SITE_ID
could take different values than 1 would help.