Python - How to import 'CurrentSiteManager' -- django

Import CurrentSiteManager

To import CurrentSiteManager, Add the following line to the top of your code.

from django.contrib.sites.managers import CurrentSiteManager

 

For more information about CurrentSiteManager:
django CurrentSiteManager