how to get SITE_ID in django....shell

from django.conf import settings

At the top of your Python file, import the settings module from django.conf.

site_id = settings.SITE_ID

Then, access the SITE_ID attribute from the settings module to get the site ID.