title: How to redirect in django while using django-hosts?
body: <p>I'm using <a href="https://django-hosts.readthedocs.io/en/latest/index.html" rel="nofollow noreferrer">django-hosts</a> package to manage content that's supposed to be set in various different subdomains. I started by making a view in which a form is used to change something. Once the form is validated and processed, user is supposed to be redirected to some other page. Looking through documentation there's an easy way to render():</p>
  
  <pre><code>settings_url = reverse('settings', host='dashboard')
  return render(request, 'dashboard/settings.html', {'settings_url': settings_url})
  </code></pre>
  
  <p>However, there's no mention of redirect(). So how would I go about redirecting to somewhere else, instead of the usual <code>return redirect("dashboard:settings")</code></p>
  
  <p><strong>myapp/hosts.py</strong> :</p>
  
  <pre><code>host_patterns = patterns('',
      host(r'www', settings.ROOT_URLCONF, name='www'),
      host(r'dashboard\.myapp\.com', 'dashboard.urls', name='dashboard'),
  )
  </code></pre>
  
  <p><strong>dashboard/urls.py</strong></p>
  
  <pre><code>from .views import home, websitesettings
  
  urlpatterns = [
      url(r'^$', home, name='home'),
      url(r'^settings/$', websitesettings, name='settings'),
  ]
  </code></pre>
  
  <p>Basically all I want is to redirect back to the same page after form is submitted (in the render example, I'm submitting a form to change certain website settings, which is a model on it's own, and then I want to redirect back to the same page after that).</p>