Django Sites framework for local development
Recently, in an application I am writing with Django, I needed to get the domain name for an email that was being sent with django-registration. Django-registration generates a unique code to activate a user account. You know, the typical workflow of register on the website, receive a confirmation email, click an activation link, done. Since django-registration relies on you to create the URL with the unique code on it, and it only gives you a site variable, which is an instance of django. »