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...@googlegroups.com.
To post to this group, send email to django...@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.
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://www.gabryandjenny.com/admin/ |
Django Version: | 1.5.4 |
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/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py in get_callable, line 104 |
---|---|
Python Executable: | /usr/languages/python/2.6/bin/python |
Python Version: | 2.6.6 |
Python Path: | ['/home/alessandrocambogia', '/home/alessandrocambogia/gabryandjenny', '/home/alessandrocambogia/gabryandjenny/public', '/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg', '/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg', '/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg', '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg', '/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg', '/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg', '/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg', '/home/alessandrocambogia/gabryandjenny/public', '/usr/local/alwaysdata/python/django/1.5.4', '/usr/languages/python/2.6/lib/python26.zip', '/usr/languages/python/2.6/lib/python2.6', '/usr/languages/python/2.6/lib/python2.6/plat-linux2', '/usr/languages/python/2.6/lib/python2.6/lib-tk', '/usr/languages/python/2.6/lib/python2.6/lib-old', '/usr/languages/python/2.6/lib/python2.6/lib-dynload', '/usr/languages/python/2.6/lib/python2.6/site-packages', '/usr/local/lib/python2.6/site-packages', '/usr/local/lib/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages', '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/', '/home/alessandrocambogia/gabryandjenny/gabryandjennyProject/'] |
Server time: | Sat, 21 Dec 2013 06:15:16 -0600 |
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://www.gabryandjenny.com/admin/ |
Django Version: | 1.5.4 |
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/alwaysdata/python/django/1.5.4/django/core/urlresolvers.py in get_callable, line 104 |
---|---|
Python Executable: | /usr/languages/python/2.6/bin/python |
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a187ee9f-16b3-4e88-89c8-db65a6363846%40googlegroups.com.
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a187ee9f-16b3-4e88-89c8-db65a6363846%40googlegroups.com.
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/61e731ce-8cb4-4a94-a832-d8a18680c830%40googlegroups.com.
get_query_set() takes exactly 1 argument (2 given)
Environment:
Request Method: GET
Request URL: http://www.gabryandjenny.com/admin/gabryandjennyApp/page/
Django Version: 1.5.4
Python Version: 2.6.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.sitemaps',
'modeltranslation',
'gabryandjennyApp',
'photologue',
'south',
'mptt',
'feincms',
'tinymce')
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 "/usr/local/alwaysdata/python/django/1.5.4/django/core/handlers/base.py" in get_response
115. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/options.py" in wrapper
372. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/views/decorators/cache.py" in _wrapped_view_func
89. response = view_func(request, *args, **kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/sites.py" in inner
202. return view(request, *args, **kwargs)
File "/home/alessandrocambogia/feincms/admin/tree_editor.py" in changelist_view
322. return super(TreeEditor, self).changelist_view(request, extra_context, *args, **kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" in _wrapper
25. return bound_func(*args, **kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/usr/local/alwaysdata/python/django/1.5.4/django/utils/decorators.py" in bound_func
21. return func(self, *args2, **kwargs2)
File "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/options.py" in changelist_view
1180. self)
File "/usr/local/alwaysdata/python/django/1.5.4/django/contrib/admin/views/main.py" in __init__
73. self.query_set = self.get_query_set(request)
Exception Type: TypeError at /admin/gabryandjennyApp/page/
Exception Value: get_query_set() takes exactly 1 argument (2 given)
Any suggestion ? I read can be MPTT probably... maybe to update .... ?
Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/aae53d30-8633-4879-83fb-dc81fc8ac47a%40googlegroups.com.
Hi Russel,
thank you for your e-mail !!!
I thought that something was connected with MPTT or FeinCMS... I'll try to work out !
What I really don't understand why so many problem when you in deployment ??? In local everything was super fine !!!
No module named filterspecs
/home/alessandrocambogia/feincms/admin/filterspecs.py in <module>, line 7
where alessandrocambogia is the first-app.
I need to have
/home/alessandrocambogia/gabryandjenny/feincms
where gabryandjenny is the second-app
but actually I don't know how to change the path... Is my first experience in Django.
Can you help in this ???? Please ???
Thank you in advance.
Gabri
I think I found the problem...maybe...
I running my app in the same hosting of another app ... (sorry for my english..is not my first language... I'm italian…)
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e66a8967-5e82-43b2-9ba8-8736cb192025%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9bd66d58-20d2-40fd-8445-e1e7910b9507%40googlegroups.com.