from django.conf.urls import include, url
from django.contrib import admin


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
    url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]

from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView


urlpatterns = [
    url(r'^$', RedirectView.as_view(url='https://opendebatecoalition.com', permanent=False)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
    url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]

Add a (temporary) redirect to opendebatecoalition.com from /
Add a (temporary) redirect to opendebatecoalition.com from /

Temporary because permanent is really hard to take back, if you decide
later that you wanted something else.

  from django.conf.urls import include, url
  from django.contrib import admin
+ from django.views.generic.base import RedirectView
  
  
  urlpatterns = [
+     url(r'^$', RedirectView.as_view(url='https://opendebatecoalition.com', permanent=False)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
      url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
  ]
  
Add a (temporary) redirect to opendebatecoalition.com from /
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
    url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]

## Instruction:
Add a (temporary) redirect to opendebatecoalition.com from /
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView


urlpatterns = [
    url(r'^$', RedirectView.as_view(url='https://opendebatecoalition.com', permanent=False)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
    url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]
