<filename>url_shortener/urls.py
from django.conf.urls import url
from django.contrib import admin

from django.conf import settings
from django.conf.urls.static import static

from shortener.views import UrlShortenerView, RedirectView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^(?P<short_url>[\w-]+)/$', RedirectView.as_view(), name='redirect'),
    url(r'^$', UrlShortenerView.as_view(), name='home'),
]

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

<filename>url_shortener/urls.py
from django.conf.urls import url
from django.contrib import admin

from django.conf import settings
from django.conf.urls.static import static

from shortener.views import UrlShortenerView, RedirectView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^(?P<short_url>[\w-]+)/$', RedirectView.as_view(), name='redirect'),
    url(r'^$', UrlShortenerView.as_view(), name='home'),
]

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
