[Django]-No module named admin.sites.urls

4👍

thebjorn is right. Your urls.py should look more like this.

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

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'tango.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),  ## Here's the typo
    url(r'^rango/', include('rango.urls')),
)

Leave a comment