Re: dict objects are unhashable

2010-12-02 Thread Tom Evans
me > > thank you > Aboim > The error is that you are trying to look up a url, and the name of the view you are looking up is the same as the name of a dictionary in the template context. IE you want the url named 'obras_detail', but instead it is looking for a url whos

Re: dict objects are unhashable

2010-12-02 Thread Carlos Aboim
Thank you Tom for your answer and pacience. But I am totally lost! I recoded urls because we don't need specify the default template_name So I am going post all my releated files and code if you could analyze it for me I'll apreciate. urls inside app folder: http://dpaste.com/hold/282239/ templat

Re: dict objects are unhashable

2010-12-02 Thread Tom Evans
On Thu, Dec 2, 2010 at 2:42 PM, Carlos Aboim wrote: > Yeah I understand you! > > but is something missing me, because if I put it this way > > my urls: > info_dict = { >    'queryset': Obra.objects.all(), >    'template_object_name': 'obras', >    'paginate_by': 5, >    'tamplate_name': 'obras/obr

Re: dict objects are unhashable

2010-12-02 Thread Carlos Aboim
a wrap function on views.py, but I think this is a simple problem I just don't get it, can you help me? thanks Aboim On Dec 2, 2:23 pm, Tom Evans wrote: > On Thu, Dec 2, 2010 at 2:18 PM, Carlos Aboim wrote: > > Hi guys (and gals), > > Why I am getting this error?

Re: dict objects are unhashable

2010-12-02 Thread Tom Evans
On Thu, Dec 2, 2010 at 2:18 PM, Carlos Aboim wrote: > Hi guys (and gals), > Why I am getting this error? > > Caught TypeError while rendering: dict objects are unhashable > > I am using a generic view (object_list) to render my template. But I > guess I am not passing a

dict objects are unhashable

2010-12-02 Thread Carlos Aboim
Hi guys (and gals), Why I am getting this error? Caught TypeError while rendering: dict objects are unhashable I am using a generic view (object_list) to render my template. But I guess I am not passing all the data correctly. Could you show me the correct direction? my urls: info_dict

Re: Dict objects are unhashable errors (FOUND THE BUG anyone know why?)

2009-07-19 Thread Karen Tracey
On Thu, Jul 16, 2009 at 5:06 PM, Some Guy wrote: > > Hi Group, > I found a bug that was causing my issue (ref: > > http://groups.google.com/group/django-users/browse_thread/thread/130f36db5e95bd81 > ) > > In my urls.py I have a line ... > >(r'^diamond/(?P\d+)/$', 'object_detail', info_dict, >

Re: Dict objects are unhashable errors

2009-07-16 Thread Some Guy
good question! I was basing it off the docs (or so I thought) on generic views. django urls.py has never been very intuitive for me, so I rely on copying from the docs pretty heavily. I guess it got mangled at some stage... thanks for the link tho. :) On Jul 16, 2:15 pm, Alex Koshelev wrote: >

Re: Dict objects are unhashable errors

2009-07-16 Thread Alex Koshelev
On Fri, Jul 17, 2009 at 1:07 AM, Some Guy wrote: > > Found out what was causing this error behavior. > > this line was in my urls.py.. commenting it out fixed everything. I > just can't see what's wrong with it :-) > > #(r'^diamond/(?P\d+)/$', 'object_detail', info_dict, > {'template': 'diam

Re: Dict objects are unhashable errors

2009-07-16 Thread Some Guy
27;}), On Jul 15, 12:14 pm, Some Guy wrote: > I should add my django versions too > > dev: 1.1 beta 1 SVN-11082 > > Deploy: 1.1 beta 1 > > On Jul 15, 12:12 pm, Some Guy wrote: > > > > > Hi, > > I seem to have a problem where various contrib element

Dict objects are unhashable errors (FOUND THE BUG anyone know why?)

2009-07-16 Thread Some Guy
Hi Group, I found a bug that was causing my issue (ref: http://groups.google.com/group/django-users/browse_thread/thread/130f36db5e95bd81) In my urls.py I have a line ... (r'^diamond/(?P\d+)/$', 'object_detail', info_dict, {'template': 'diamond_detail.html'}), If I comment it out it, everyt

Re: Dict objects are unhashable errors

2009-07-15 Thread Some Guy
I should add my django versions too dev: 1.1 beta 1 SVN-11082 Deploy: 1.1 beta 1 On Jul 15, 12:12 pm, Some Guy wrote: > Hi, > I seem to have a problem where various contrib elements are throwing a > template error "dict objects are unhashable" > I'm seeing it in ad

Dict objects are unhashable errors

2009-07-15 Thread Some Guy
Hi, I seem to have a problem where various contrib elements are throwing a template error "dict objects are unhashable" I'm seeing it in admin, comments, etc. Both on my dev setup and deployed. The line of code always seems to be File "/Library/Python/2.5/site- p

Re: dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Some Guy
> > Hi Group, > > I'm using svn version of django and SQLite3 on linux. I set up a basic > > admin user and when I try to access the edit page I get the > > "TemplateSyntaxError at /admin/auth/user/1/ > > Caught an exception while rendering: dict objects are unhash

Re: dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 2:28 PM, Some Guy wrote: > > Hi Group, > I'm using svn version of django and SQLite3 on linux. I set up a basic > admin user and when I try to access the edit page I get the > "TemplateSyntaxError at /admin/auth/user/1/ > Caught an exception w

dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Some Guy
Hi Group, I'm using svn version of django and SQLite3 on linux. I set up a basic admin user and when I try to access the edit page I get the "TemplateSyntaxError at /admin/auth/user/1/ Caught an exception while rendering: dict objects are unhashable" Is this a bug? how fa

Re: reverse: TypeError: dict objects are unhashable

2008-05-05 Thread sector119
I use reverse('staticpages-staticpage_delete', kwargs={'object_id': 4}) in my code. It works (the same code) for many models, and only this one doesn't work properly. On May 6, 1:12 am, Lemuel Formacil <[EMAIL PROTECTED]> wrote: > Try this: > > On May 5, 2008, at 6:32 PM, sector119 wrote: > > >>>

Re: reverse: TypeError: dict objects are unhashable

2008-05-05 Thread Lemuel Formacil
Try this: On May 5, 2008, at 6:32 PM, sector119 wrote: reverse('staticpages-staticpage_delete', {'object_id': 4}) reverse('staticpages-staticpage_delete', kwargs={'object_id': 4}) -- Lemuel --~--~-~--~~~---~--~~ You received this message because you are

reverse: TypeError: dict objects are unhashable

2008-05-05 Thread sector119
_src/django/utils/functional.py", line 128, in wrapper if mem_args in cache: TypeError: dict objects are unhashable urls.py: urlpatterns = patterns('views.generic', url(r'^$', 'simple.redirect_to', {'url': 'staticpage/'}), url

Re: dict objects are unhashable

2007-10-11 Thread kevinski
You were right the problem was in the urls. Thank you so much for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com T

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Honestly, I do not know what that means. How do I check this? Apologies-- I assumed that the problem had something to do with unicode and localization. http://www.djangoproject.com/documentation/i18n/#if-you-don-t-need-internationalization-in-

Re: dict objects are unhashable

2007-10-10 Thread kevinski
# C:\Python25\lib\site-packages\django\core\urlresolvers.py in reverse 274. return self._resolve_special('500') 275. 276. def reverse(self, lookup_view, *args, **kwargs): 277. try: 278. lookup_view = get_callable(lookup_view, True) 279. except (ImportError, AttributeError): 280. raise NoR

Re: dict objects are unhashable

2007-10-10 Thread kevinski
Honestly, I do not know what that means. How do I check this? On Oct 10, 4:41 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > > > > Can someone help me with the following error. It occurs when I restart > > Apache and try to load the Admin page

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Can someone help me with the following error. It occurs when I restart > Apache and try to load the Admin page. When I refresh, the Admin page > comes up, however the Documentation, Change Password, and Log Out > links call http://localhost/admin

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Can someone help me with the following error. It occurs when I restart > Apache and try to load the Admin page. When I refresh, the Admin page > comes up, however the Documentation, Change Password, and Log Out > links call http://localhost/admi

dict objects are unhashable

2007-10-10 Thread kevinski
at /admin/ dict objects are unhashable Request Method: GET Request URL:http://localhost/admin/ Exception Type: TypeError Exception Value:dict objects are unhashable Exception Location: C:\Python25\lib\site-packages\django\core \urlresolvers.py in _get_reverse_dict