I\'m installing Django AllAuth into my project and have come across the following line in the documentation for that app (see docs here):
Add a Site f
This works for me:
user$ python manage.py shell --settings your-settings.py
[ ... banner ... ]
>>>
>>> from django.contrib.sites.models import Site
>>>
>>> sorted([(site.id,site.name) for site in Site.objects.all()])
[(1, u'www.lvh.me'), (2, u'example.com'), (3, u'www.example.com'),...]
>>>
>>> quit()
user$