I'm fairly new to django and now I'm stuck on this error... 'Context' object has no attribute 'render_context'
searching around has told me that render_context did not exist pre django 1.2 but I have django 1.2.4 installed. Here is some of my stack trace... AttributeError at /hsws/ 'Context' object has no attribute 'render_context' Request Method: GET Request URL: http://175.41.175.33/hsws/ Django Version: 1.2.4 Exception Type: AttributeError Exception Value: 'Context' object has no attribute 'render_context' Exception Location: /usr/local/lib/python2.6/dist-packages/django/ template/__init__.py in render, line 171 Python Executable: /usr/bin/python Python Version: 2.6.5 Python Path: ['/home/ubuntu/workspace/', '/home/ubuntu/workspace/ hotspot/', '/var', '/usr/lib/python2.6', '/usr/lib/python2.6/plat- linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/ usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/ usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/ python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/ gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] Server time: Fri, 15 Apr 2011 22:53:34 +0000 Traceback Switch to copy-and-paste view /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response response = callback(request, *callback_args, **callback_kwargs) ... ▶ Local vars /home/ubuntu/workspace/hotspot/hsws/views.py in index return HttpResponse(t.render(c)) ... ▶ Local vars /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render context.render_context.push() ... ▶ Local vars I'm calling context with really basic code ... locs = Location.objects.all() t = loader.get_template('hsws/index.html') c = Context({ 'all_locations': locs, }) return HttpResponse(t.render(c)) the view does exist and I am importing Context and loader at the top of this code.. Any help would be appreciated. -- 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. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.