WebFaction
Community site: login faq

I just deployed a Django & Mezzanine site to WebFaction. On my development copy, everything seemed to be working, but I'm now having problems with forms on the live site. Other page types seem to work, but, whenever I try to view a form, I hit an error:

Traceback (most recent call last):

File "/home/raddevon/webapps/radworks/lib/python2.7/django/core/handlers/base.py", line 139, in get_response 
response = response.render()

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/response.py", line 105, in render 
self.content = self.rendered_content

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/response.py", line 82, in rendered_content 
content = template.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 140, in render 
return self._render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 134, in _render 
return self.nodelist.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 840, in render 
bit = self.render_node(node, context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 854, in render_node 
return node.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/loader_tags.py", line 123, in render 
return compiled_parent._render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 134, in _render 
return self.nodelist.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 840, in render 
bit = self.render_node(node, context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 854, in render_node 
return node.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/loader_tags.py", line 123, in render 
return compiled_parent._render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 134, in _render 
return self.nodelist.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 840, in render 
bit = self.render_node(node, context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 854, in render_node 
return node.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/loader_tags.py", line 62, in render 
result = block.nodelist.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 840, in render 
bit = self.render_node(node, context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 854, in render_node 
return node.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/defaulttags.py", line 305, in render 
return nodelist.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 840, in render 
bit = self.render_node(node, context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 854, in render_node 
return node.render(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/mezzanine/template/__init__.py", line 115, in render 
for part in token.split_contents()[1:]]

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 735, in resolve 
value = self._resolve_lookup(context)

File "/home/raddevon/webapps/radworks/lib/python2.7/django/template/base.py", line 781, in _resolve_lookup 
(bit, current)) # missing attribute

VariableDoesNotExist: Failed lookup for key [form] in

This is followed by a massive dictionary which, in fact, does not have a form key. Trouble is, I'm not sure how to fix this. Can anyone help?

asked 03 Apr '14, 19:46

raddevon
1114
accept rate: 0%

edited 03 Apr '14, 19:47


One of my dependencies must not have installed properly on the first attempt. Ran a pip install on my requirements.txt file, and now the forms are working. Sorry!

permanent link

answered 03 Apr '14, 23:54

raddevon
1114
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337
×7

question asked: 03 Apr '14, 19:46

question was seen: 1,728 times

last updated: 03 Apr '14, 23:54

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM