title: Using django subdomain and it says localhost does not belong to the domain example.com
body: <p>I'm using the Django Package <a href="https://django-subdomains.readthedocs.io/en/latest/" rel="nofollow">django-subdomain</a>, and I don't think I've configured it correctly.</p>
  
  <p>Now that I'm trying to load data from the DB I'm getting this error in the terminal</p>
  
  <blockquote>
    <p>The host localhost:8000 does not belong to the domain example.com, unable to identify the subdomain for this request</p>
  </blockquote>
  
  <p>I don't have any references to example.com in my project.</p>
  
  <p>Here's my subdomain config:</p>
  
  <pre><code>ROOT_URLCONF = 'creativeflow.urls'
  # A dictionary of urlconf module paths, keyed by their subdomain.
  SUBDOMAIN_URLCONFS = {
      None: ROOT_URLCONF,  # no subdomain, e.g. ``example.com``
      'www': ROOT_URLCONF,
      'blog': ROOT_URLCONF + '.blogs',
  }
  SITE_ID = 1
  </code></pre>
  
  <p>Middleware:</p>
  
  <pre><code>MIDDLEWARE_CLASSES = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'subdomains.middleware.SubdomainURLRoutingMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  </code></pre>
  
  <p>My urls:</p>
  
  <pre><code>urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^posts/(?P&lt;year&gt;\d{4})/(?P&lt;months&gt;\d{2}|\w{3})/(?P&lt;day&gt;\d{2})',
         BlogListView.as_view(paginate_by=25), name="blog-list-view"),
  ]
  </code></pre>
  
  <p>I'm not certain of what other config I need to let me use/develop with subdomains. What do I need to change so I can access the BlogListView at <code>http://localhost:8000/posts/2016/07/09</code> ? Or better via the actual subdomain of <code>blog.creativeflow.com/posts/2016/07/09</code> ? I suspect the latter is just a simple change to the windows equivalent of <code>/etc/hosts/</code>.</p>