Sunday, April 14, 2013

Re: ViewDoesNotExist at /admin/

Hi Daniel,

The error you've described isn't related to the admin site at all -- the problem lies somewhere else in your codebase.

django.views.generic.list_detail.object_list was one of the old function-based generic views; it was deprecated in Django 1.3, and removed entirely in Django 1.5. You have code that is using (or at least referencing) this old view.

Without knowing what else is in your project, or seeing the full stack trace, it's impossible to say exactly what is causing this error. It's possible the problem is being caused by a third party Django app that you've included in your project.

Yours,
Russ Magee %-)

On Sat, Apr 13, 2013 at 9:15 AM, Daniel Guo <danniel1205@gmail.com> wrote:
Hi all,
I've spent lot of time trying to figure out what is going on there, but my admin site is still not working.

I just followed the Django tutorial to create an app named polls. But I have a customized template_dir which is used by my previous app.

All the configurations to activate admin site are the same from official tutorial. But when I am trying to access the admin site: http://127.0.0.1:8000/admin/

I got the exceptions below:
Could not import django.views.generic.list_detail.object_list. Parent module django.views.generic.list_detail does not exist.
Request Method:GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 1.5.1
Exception Type: ViewDoesNotExist
Exception Value:
  Could not import django.views.generic.list_detail.object_list. Parent module django.views.generic.list_detail does not exist.
Exception Location:/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py in get_callable, line 104
Python Executable:/usr/bin/python
Python Version: 2.7.3
Python Path:
['/home/daniel/Django-workspace/firstProject',   '/usr/local/lib/python2.7/dist-packages/oauth2-1.5.211-py2.7.egg',   '/usr/lib/python2.7',   '/usr/lib/python2.7/plat-linux2',   '/usr/lib/python2.7/lib-tk',   '/usr/lib/python2.7/lib-old',   '/usr/lib/python2.7/lib-dynload',   '/usr/local/lib/python2.7/dist-packages',   '/usr/local/lib/python2.7/dist-packages/PIL',   '/usr/lib/python2.7/dist-packages',   '/usr/lib/python2.7/dist-packages/gst-0.10',   '/usr/lib/python2.7/dist-packages/gtk-2.0',   '/usr/lib/pymodules/python2.7',   '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',   '/usr/lib/python2.7/dist-packages/ubuntuone-client',   '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',   '/usr/lib/python2.7/dist-packages/ubuntuone-couch',   '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
Server time: Fri, 12 Apr 2013 20:12:16 -0500
 

Not like most of the similar issues from google. I found there is something wrong with the 'django.views.generic.list_detail does not exist'?? 
I am new to Django, could you please give me some hints to solve this?

Thanks a lot

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

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate