KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I keep getting this error: 'str' object has no attribute 'resolve' when trying to accessing the django admin site and I can't figure out why. I have apps within my project that have their own admin.py files. Could this cause it? here is my urls.py: from django.conf.urls.defaults import * import settings from django.contrib.auth.views import login, logout from views import index, simple, complex from django.views.generic.simple import direct_to_template # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^django_jchat/', include('django_jchat.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'^admin/', include(admin.site.urls)), ... Heres the trace back: 'str' object has no attribute 'resolve' Request Method: GET Django Version: 1.3 Exception Type: AttributeError Exception Value: 'str' object has no attribute 'resolve' Exception Location: /home/dockedin/webapps/peebletalk/lib/python2.7/ django/core/urlresolvers.py in resolve, line 252 Python Executable: /usr/local/bin/python Python Version: 2.7.1 Python Path: ['/home/dockedin/webapps/peebletalk', '/home/dockedin/webapps/peebletalk/lib/python2.7', '/home/dockedin/lib/python2.7', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/PIL'] Server time: Wed, 10 Aug 2011 15:24:55 -0400 Traceback Switch to copy-and-paste view /home/dockedin/webapps
Tags (comma-separated)
Save Edits
Cancel