I have a problem, I uploaded my Django project to a web server running apache, mod_python and django. On the computer, I developed the following works:
nameBox = getNamesBox().render(locals())
-
def getNamesBox(): users = User.objects.filter() templateString = '<select name="name box">' for user in users: templateString += '<option value="' + user.name + '"> ' + user.name + '</option>' templateString += '</select>' template = Template(templateString) return template
But on the web server when starting from apache or manage.py server it says
AttributeError at /order_site/order/ 'dict' object has no attribute 'render_context'
The code on both machines is identical, so it seems to me that maybe this is another problem? He cannot display my form, and I do not know why.
source share