djangosnippets.org: Latest snippets posted by rpoultonhttps://djangosnippets.org/users/rpoulton/2007-10-02T20:07:37.703480-05:00rpoultonRedirect Multiple Domains to a Single Domain
2007-10-02T20:07:37.703480-05:00rpoultonhttps://djangosnippets.org/snippets/434/<p>Often, you may register more than one domain name for your website, which may have a primary domain of <em>mysite.com.au</em>:</p>
<ol>
<li>mysite.com</li>
<li>my-site.com</li>
<li>mysite.net</li>
<li>mysite.co.uk</li>
</ol>
<p>For SEO and brand awareness reasons, (remember: every page should have exactly one URL) you want every visitor to end up on your primary domain, …</p>
Freely redistributableUsing Templates to Send E-Mails
2007-03-01T18:53:10.453786-06:00rpoultonhttps://djangosnippets.org/snippets/69/<p>This is a basic example for sending an email to a user (in this case, when they've signed up at a website) using the Django template framework.</p>
<p>It's really quite simple - we're just using a plain text template instead of HTML, and using the output of the template's 'render()' …</p>
Freely redistributable