You have to check if you enable the "admin" application on your settings.py.
2010/10/5 Sithembewena Lloyd Dube <zebr...@gmail.com> > Hey Lisa, > > Look at this line (supplied by you): > > > # (r'^ccu/', include('ccu.foo.urls')), > > ^^ the line above is correct. > > Now, the line that's giving you trouble is: > > (r'^admin/', include(admin.site.urls)), > > ^^ spot the difference? > > I think you should use quotes around your argument to the include function. > That function expects a string, I believe :) > > > > On Wed, Oct 6, 2010 at 12:01 AM, Lisa <lisagand...@gmail.com> wrote: > >> Hi all, >> I'm sure I have a pretty simple problem... >> here's my url.py file.... >> >> from django.conf.urls.defaults import * >> >> # Uncomment the next two lines to enable the admin: >> from django.contrib import admin >> admin.autodiscover() >> >> urlpatterns = patterns('', >> # Example: >> # (r'^ccu/', include('ccu.foo.urls')), >> >> # Uncomment the admin/doc line below and add >> 'django.contrib.admindocs' >> # to INSTALLED_APPS to enable admin documentation: >> # (r'^admin/doc/', include('django.contrib.admindocs.urls')), >> >> # Uncomment the next line to enable the admin: >> (r'^stories/$','ccu_gen.views.all_stories'), >> (r'^stories/(?P<story_id>\d+)/$', 'ccu_gen.views.one_story'), >> (r'^admin/', include(admin.site.urls)), >> >> ) >> >> stories works fine, but for the admin url, I'm getting the error >> __import__() argument 1 must be string, not instancemethod >> >> any ideas? >> >> Thanks! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Regards, > Sithembewena Lloyd Dube > http://www.lloyddube.com > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.