from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView, RedirectView


prefixed_urlpatterns = [
    url(r'^cfp/', include('pyconcz_2016.cfp.urls')),

    # static pages
    url(r'^$', TemplateView.as_view(template_name='pages/homepage.html')),
    url(r'^about', TemplateView.as_view(template_name='pages/about.html')),
    url(r'^about/code', TemplateView.as_view(template_name='pages/code.html')),
    url(r'^sponsors/offer', TemplateView.as_view(template_name='pages/sponsors_offer.html')),
]

urlpatterns = static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + [
    url(r'^2016/', include(prefixed_urlpatterns)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', RedirectView.as_view(url='/2016/'))
]

from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView, RedirectView


prefixed_urlpatterns = [
    url(r'^cfp/', include('pyconcz_2016.cfp.urls')),

    # static pages
    url(r'^$', TemplateView.as_view(template_name='pages/homepage.html')),
    url(r'^about$', TemplateView.as_view(template_name='pages/about.html')),
    url(r'^about/code$', TemplateView.as_view(template_name='pages/code.html')),
    url(r'^sponsors/offer$', TemplateView.as_view(template_name='pages/sponsors_offer.html')),
]

urlpatterns = static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + [
    url(r'^2016/', include(prefixed_urlpatterns)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', RedirectView.as_view(url='/2016/'))
]

Fix url patterns