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
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
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
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?
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
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
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,
>
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:
>
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
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
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
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
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
> > 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
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
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
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:
>
> >>>
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
_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
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
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-
# 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
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
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
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
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
26 matches
Mail list logo