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

# See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
)

from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView

# See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    (r'^/?$', TemplateView.as_view(template_name='index.html')),
)

urlpatterns += staticfiles_urlpatterns()

Set the default URL to point to index.html.
Set the default URL to point to index.html.

  from django.conf.urls import patterns, include, url
  from django.contrib import admin
+ from django.contrib.staticfiles.urls import staticfiles_urlpatterns
+ from django.views.generic import TemplateView
  
  # See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
      url(r'^admin/', include(admin.site.urls)),
+ 
+     (r'^/?$', TemplateView.as_view(template_name='index.html')),
  )
  
+ urlpatterns += staticfiles_urlpatterns()
+ 
Set the default URL to point to index.html.
## Code Before:
from django.conf.urls import patterns, include, url
from django.contrib import admin

# See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
)

## Instruction:
Set the default URL to point to index.html.
## Code After:
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView

# See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    (r'^/?$', TemplateView.as_view(template_name='index.html')),
)

urlpatterns += staticfiles_urlpatterns()
