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

from capomastro.views import HomeView


admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'capomastro.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^', include('projects.urls')),
    url(r'^jenkins/', include('jenkins.urls')),
    url(r'^admin/', include(admin.site.urls)),
)


if settings.DEBUG:
    urlpatterns += staticfiles_urlpatterns()

if hasattr(settings, 'ADDITIONAL_URLS'):
    urlpatterns += settings.ADDITIONAL_URLS
else:
    urlpatterns += url(r'^accounts/', include('django.contrib.auth.urls')),

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

from capomastro.views import HomeView


admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'capomastro.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^', include('projects.urls')),
    url(r'^jenkins/', include('jenkins.urls')),
    url(r'^admin/', include(admin.site.urls)),
)


if settings.DEBUG:
    urlpatterns += staticfiles_urlpatterns()

if hasattr(settings, 'AUTHENTICATION_URLS'):
    urlpatterns += settings.AUTHENTICATION_URLS
else:
    urlpatterns += url(r'^accounts/', include('django.contrib.auth.urls')),

Change from ADDITIONAL_URLS to AUTHENTICATION_URLS
Change from ADDITIONAL_URLS to AUTHENTICATION_URLS
