On 10/31/2010 10:25 PM, daniel wrote:
>
> I can create a page, But I got this error when displaying again the "/
> admin/pages/page/":
>
> Exception Value:
> Caught AttributeError while rendering: 'NoneType' object has no
> attribute 'COOKIES'
> Exception Location: /usr/local/lib/python2.6/dist-packages/
> django_page_cms-1.3.0-py2.6.egg/pages/templatetags/pages_tags.py in
> pages_admin_menu, line 135
> Template error
well... I changed
"django-page-cms/pages/templatetags/pages_tags.py", line 135
to:
if hasattr(request,"COOKIES") and "tree_expanded" in request.COOKIES:
And now it works!
(but I still don't know if it is a bug in page-cms or a misconfiguration
in my project settings...)