Thursday, November 4, 2010

enable admin gives error

Hi,
I'm just starting out. Things ran fine until I uncomment out:
(r'^admin/', include(admin.site.urls))
in my urls.py file. When I access my local site from the development
server. I get:
* Exception Type: TypeError
* Exception Value: 'tuple' object is not callable.
My urls.py file contains:
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
(r'^People/$', 'iFriends.People.views.index')

# Example:
# (r'^iFriends/', include('iFriends.foo.urls')),

# 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:
(r'^admin/', include(admin.site.urls)),
)
thanks in advance for any help.
jt

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate