from dropbeat.urls_api_v1 import api_v1
from django.conf import settings
from django.conf.urls import url, include
from django.views.generic.base import RedirectView

urlpatterns = [
    url(r'^api/', include(api_v1.urls)),
    # Redirect for debug mode.
    url(r'^/?', RedirectView.as_view(url=settings.ROOT_HTML))
]

@@ -221,43 +221,53 @@
 )),%0A
-    # Redirect for debug mode.%0A    
+%5D%0A%0Aif settings.DEBUG:%0A%09urlpatterns.append(%0A%09%09
 url(
@@ -319,11 +319,9 @@
 T_HTML))
-%0A%5D%0A
+)

index redirect for debug mode