from django.contrib.staticfiles.views import serve
from django.views.generic import RedirectView
urlpatterns = [url('^$', serve, kwargs={'path': 'index.html'}), url(
    '^(?!/static/.*)(?P<path>.*\\..*)$', RedirectView.as_view(url=
    '/static/%(path)s'))]
Serving static files from root of Django development server