I'm getting an error of when I'm trying to configure my admin grappelli. Whenever my index is commented out, the admin pages work fine. But When uncommented it gives me an error of ImproperlyConfigured at /admin/. How should I be configuring the admin then?
from django.conf.urls.defaults import *
from django.views.static import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include('apps.grappelli.urls')),
(r'^admin/', include(admin.site.urls)),
(r'^$', include('apps.index.views')),
# Examples:
#(r'^blog/', include('apps.blog.views')),
# Uncomment the admin/doc line below to enable admin documentation:
#(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
)
Thanks.