andreirk / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
0 stars 0 forks source link

'View on site' in admin: maximum recursion depth exceeded #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add simple (rst) article in admin

Test
-----

Some items:

- Pinax
- Django

End.
2.
Save.

3.
 issue: View on Site

and I get:

maximum recursion depth exceeded

Request Method:     GET
Request URL:    http://127.0.0.1:8000/admin/r/36/1/
Exception Type:     RuntimeError
Exception Value:    

maximum recursion depth exceeded

Exception Location:     /usr/lib/python2.5/copy.py in deepcopy, line 162
Python Executable:  /usr/bin/python
Python Version:     2.5.2
Python Path:    ['/home/gour/repos/svn/pinax/apps/core_apps',
'/home/gour/repos/svn/pinax/apps/local_apps',
'/home/gour/repos/svn/pinax/apps/external_apps',
'/home/gour/repos/svn/pinax/libs/external_libs/simplejson-1.9.1',
'/home/gour/repos/svn/pinax/libs/external_libs/markdown-1.7',
'/home/gour/repos/svn/pinax/libs/external_libs/pownce-api-0.2',
'/home/gour/repos/svn/pinax/libs/external_libs/misc',
'/home/gour/repos/svn/pinax/libs/external_libs/python-openid-2.1.1',
'/home/gour/repos/svn/pinax/libs/external_libs/Genshi-0.5.1',
'/home/gour/repos/svn/pinax/libs/external_libs/dateutil',
'/home/gour/repos/svn/pinax/libs/external_libs/pytz-2008b',
'/home/gour/repos/svn/pinax/libs/external_libs/python-yadis-1.1.0',
'/home/gour/repos/svn/pinax/libs/external_libs/ybrowserauth',
'/home/gour/repos/svn/pinax/libs/external_libs/gdata.py-1.0.13',
'/home/gour/repos/svn/pinax/libs/external_libs/textile-2.0.11',
'/home/gour/repos/svn/pinax/libs/external_libs/vobject-0.6.6',
'/home/gour/repos/svn/pinax/libs/external_libs/feedparser-4.1',
'/home/gour/repos/svn/pinax/libs/external_libs/Creoleparser-0.5.0',
'/home/gour/repos/svn/pinax/libs/external_libs/docutils-0.4',
'/home/gour/repos/svn/pinax/libs/external_libs/python-twitter-0.5',
'/home/gour/repos/svn/pinax/libs/external_libs/geopy-trunk',
'/home/gour/repos/svn/pinax/libs/external_libs/Pygments-0.11.1',
'/home/gour/repos/svn/pinax/projects/complete_project',
'/usr/lib/python2.5/site-packages/tailor-0.9.35-py2.5.egg',
'/usr/lib/python2.5/site-packages/markdown-1.7-py2.5.egg',
'/usr/lib/python25.zip', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/python2.5/site-packages/gst-0.10',
'/usr/lib/python2.5/site-packages/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
'/home/gour/repos/svn/pinax/libs/external_libs',
'/home/gour/repos/svn/pinax/libs/external_libs/dateutil',
'/home/gour/repos/svn/pinax/libs/external_libs/docutils-0.4',
'/home/gour/repos/svn/pinax/libs/external_libs/feedparser-4.1',
'/home/gour/repos/svn/pinax/libs/external_libs/gdata.py-1.0.13',
'/home/gour/repos/svn/pinax/libs/external_libs/markdown-1.7',
'/home/gour/repos/svn/pinax/libs/external_libs/misc',
'/home/gour/repos/svn/pinax/libs/external_libs/pownce-api-0.2',
'/home/gour/repos/svn/pinax/libs/external_libs/python-openid-2.1.1',
'/home/gour/repos/svn/pinax/libs/external_libs/python-yadis-1.1.0',
'/home/gour/repos/svn/pinax/libs/external_libs/ybrowserauth']

It happens with the latest (today's) fetch from the repo.

Sincerely,
Gour

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ggd...@gmail.com on 7 Oct 2008 at 9:43

Attachments:

GoogleCodeExporter commented 9 years ago
> 1. add simple (rst) article in admin

This seeems like a wikiapp issue. The Article.get_absolute_url() must be the 
culprit.
The url '/admin/r/36/1/'dont make much sense to me. I'd like to know what
content_type/object_id you gave as the article group.
I dont have a copy of pinax at work, so it'll have to wait a little. If someone 
want
to take a look at it, it would be more than welcome. 

Thanks for the report!

Original comment by eduardo....@gmail.com on 7 Oct 2008 at 12:22

GoogleCodeExporter commented 9 years ago
<quote>
I'd like to know what content_type/object_id you gave as the article group.
</quote>

I used 'Article' as the content-type.

Sincerely,
Gour

Original comment by ggd...@gmail.com on 7 Oct 2008 at 1:33

GoogleCodeExporter commented 9 years ago
Ok. That would explain it all. I tried to help out Gour in #pinax and wasn't 
able to find the root cause of his 
problem. By telling us you explicitly set the content type to Article explains 
why the recursion is happening. I am 
marking invalid because this shouldn't have been reported here. This is a 
situation where you just don't do that 
:) It may be worth it to remove article content type from the drop-down to 
prevent this in the future, but ultimately lets report bugs to the right apps :)

Original comment by bros...@gmail.com on 7 Oct 2008 at 4:01

GoogleCodeExporter commented 9 years ago
brosner is right, the right place for this report should be the wikiapp issue 
tracker:
http://code.google.com/p/django-wikiapp/issues/list

And yes, you cant a set Article as the article group. Just leave
content_type/object_id blank if you want a 'top-level' wiki article.

Original comment by eduardo....@gmail.com on 7 Oct 2008 at 4:10