This is the tracsback:

Environment:Request Method: GETRequest URL: http://127.0.0.1:8000/adminDjango 
Version: 1.3.1Python Version: 2.7.3Installed 
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) andFile 
"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 /adminException Value: 'str' object has no attribute 'resolve'


On Wednesday, June 20, 2012 12:31:46 AM UTC+5:30, Kurtis wrote:
>
> Those URLs are outside of the tuple. Also, you're not using url() types to 
> define the urls so any reverse lookup will fail.
>
> On Tue, Jun 19, 2012 at 2:00 PM, Xavier Ordoquy <[email protected]>wrote:
>
>> Hi,
>>
>> If you just return the original urls.py, there's no way we can know what 
>> you did and this will prevents us from helping you.
>> As mentioned by Babatunde, you should give the traceback and the modified 
>> urls (use dpaste.com for that).
>>
>> Regards,
>> Xavier Ordoquy,
>> Linovia.
>>
>> Le 19 juin 2012 à 18:34, Sabbineni Navneet a écrit :
>>
>> it still shows the same error
>>
>> On Tuesday, June 19, 2012 9:23:50 PM UTC+5:30, Sabbineni Navneet wrote:
>>>
>>> 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
>>>
>>
>> On Tuesday, June 19, 2012 9:23:50 PM UTC+5:30, Sabbineni Navneet wrote:
>>>
>>> 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/-/7Y67BJIlJyMJ.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> 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 [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/NgzTOg4y45EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to