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

admin.site.autodiscover()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
]

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

admin.autodiscover()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
]

Correct autodiscover call