Finding out the Current Django Site

Another Django trick. If you want to find out information about the current site, you might want to try:


from django.models.core import sites
current_site = sites.get_current()