google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fresh installation:  #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install django-page-cms, follow the wiki
2. go to admin/pages
3. create a new page

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

TemplateSyntaxError at /admin/pages/page/

Caught an exception while rendering: 'request'

Original Traceback (most recent call last):
  File "//usr/lib/python2.5/site-packages/django/template/debug.py", line
71, in render_node
    result = node.render(context)
  File "//usr/lib/python2.5/site-packages/django/template/defaulttags.py",
line 148, in render
    nodelist.append(node.render(context))
  File "//usr/lib/python2.5/site-packages/django/template/__init__.py",
line 915, in render
    dict = func(*args)
  File
"/home/yoan/soft/django-page-cms-read-only/pages/templatetags/pages_tags.py",
line 43, in pages_admin_menu
    request = context['request']
  File "//usr/lib/python2.5/site-packages/django/template/context.py", line
43, in __getitem__
    raise KeyError(key)
KeyError: 'request'

Template error

In template
/home/yoan/soft/django-page-cms-read-only/pages/templates/admin/pages/page/chang
e_list_table.html,
error at line 15

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

trunk

Please provide any additional information below.

feel free to ask for more details.

Original issue reported on code.google.com by yoan.blanc on 5 Apr 2009 at 3:51

GoogleCodeExporter commented 9 years ago
oOops, the title lacks of information.

“Fresh installation: template error when creating new page.”

sorry.

Original comment by yoan.blanc on 5 Apr 2009 at 3:52

GoogleCodeExporter commented 9 years ago
The example app seems to work. Have you 
"django.core.context_processors.request" set
in your settings.TEMPLATE_CONTEXT_PROCESSORS ?

Original comment by batiste....@gmail.com on 6 Apr 2009 at 2:05

GoogleCodeExporter commented 9 years ago
Okay, I set it and it works. The documentation looks like it's something to 
tune and
not something to add. I didn't get and TEMPLATE_CONTEXT_PROCESSORS in the 
initial
settings.py. Maybe making the documentation clearer about this could help.

Thanks a lot!

Original comment by yoan.blanc on 7 Apr 2009 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 8 Apr 2009 at 3:50