This is 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('',(r'^admin/$', include('django.contrib.admin.urls')),)# Examples:# url(r'^$', 'mysite.views.home', name='home'),# url(r'^mysite/', include('mysite.foo.urls')),# Uncomment the admin/doc line below to enable admin documentation:# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),# Uncomment the next line to enable the admin:Please help--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/RylRYGAjC-oJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin Django Version: 1.3.1 Python Version: 2.7.3 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'mysite.books'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 89. response = middleware_method(request) File "C:\Python27\lib\site-packages\django\middleware\common.py" in process_request 67. if (not _is_valid_path(request.path_info, urlconf) and File "C:\Python27\lib\site-packages\django\middleware\common.py" in _is_valid_path 154. urlresolvers.resolve(path, urlconf) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in resolve 342. return get_resolver(urlconf).resolve(path) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in resolve 252. sub_match = pattern.resolve(new_path) Exception Type: AttributeError at /admin Exception Value: 'str' object has no attribute 'resolve'
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.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@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.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.