title: Unable to make a domain redirection in Django from example.com to www.example.com
body: <p>I get the following message when I browse to <code>example.com</code> </p>
  
  <pre><code>500 - Internal Server Error
  </code></pre>
  
  <p>I get my 404 error message when I browse to <code>www.example.com</code> which indicates my site is alive.</p>
  
  <p><strong>How can you make a domain redirection without .htaccess by Django from example.com to www.example.com?</strong></p>
  
  <p><strong>My urls.py</strong></p>
  
  <pre><code>     from django.conf.urls.defaults import *
  
       from django.contrib import admin
       admin.autodiscover()
  
       urlpatterns = patterns('',
       # Example:
       # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
  
       (r'^home/', include('index.html')),
  
       # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
       # to INSTALLED_APPS to enable admin documentation:
       (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  
       (r'^admin/(.*)', admin.site.root),
       )
  </code></pre>
  
  <p><strong>[edit]</strong></p>
  
  <p>I have the following answer from Djangohosting:</p>
  
  <blockquote>
    <p>Remove the website proxy for [example.com] and add [example.com] in the aliases section of the [www.example.com] website.</p>
  </blockquote>
  
  <p>I am not completely sure what it means.</p>
  
  <ol>
  <li>How can you remove the website proxy for <code>example.com</code>?</li>
  <li>Where can you find the aliases section of the website <code>www.example.com</code>?</li>
  </ol>