Advertisement
Guest User

Django crispy forms error

a guest
Mar 28th, 2016
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.55 KB | None | 0 0
  1. Django version 1.9.1, using settings 'mdwiki.settings'
  2. Starting development server at http://127.0.0.1:8000/
  3. Quit the server with CONTROL-C.
  4. Exception while resolving variable 'form_html' in template 'bootstrap3/whole_uni_form.html'.
  5. Traceback (most recent call last):
  6. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/forms/forms.py", line 141, in __getitem__
  7. field = self.fields[name]
  8. KeyError: 'form_html'
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. Traceback (most recent call last):
  13. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  14. current = current[bit]
  15. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/forms/forms.py", line 144, in __getitem__
  16. "Key %r not found in '%s'" % (name, self.__class__.__name__))
  17. KeyError: "Key 'form_html' not found in 'NewArticleForm'"
  18.  
  19. During handling of the above exception, another exception occurred:
  20.  
  21. Traceback (most recent call last):
  22. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 887, in _resolve_lookup
  23. current = getattr(current, bit)
  24. AttributeError: 'NewArticleForm' object has no attribute 'form_html'
  25.  
  26. During handling of the above exception, another exception occurred:
  27.  
  28. Traceback (most recent call last):
  29. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  30. current = current[int(bit)]
  31. ValueError: invalid literal for int() with base 10: 'form_html'
  32.  
  33. During handling of the above exception, another exception occurred:
  34.  
  35. Traceback (most recent call last):
  36. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  37. (bit, current)) # missing attribute
  38. django.template.base.VariableDoesNotExist: Failed lookup for key [form_html] in '<tr><th><label for="id_name">Article name:</label></th><td><input id="id_name" maxlength="1100" name="name" type="text" /></td></tr>\n<tr><th><label for="id_slug">Article slug:</label></th><td><input id="id_slug" maxlength="1100" name="slug" type="text" /></td></tr>\n<tr><th><label for="id_body">Article body:</label></th><td><textarea cols="40" id="id_body" name="body" rows="30">\r\n</textarea></td></tr>'
  39. Exception while resolving variable 'tag' in template 'bootstrap3/whole_uni_form.html'.
  40. Traceback (most recent call last):
  41. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  42. current = current[bit]
  43. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  44. raise KeyError(key)
  45. KeyError: 'tag'
  46.  
  47. During handling of the above exception, another exception occurred:
  48.  
  49. Traceback (most recent call last):
  50. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  51. if isinstance(current, BaseContext) and getattr(type(current), bit):
  52. AttributeError: type object 'Context' has no attribute 'tag'
  53.  
  54. During handling of the above exception, another exception occurred:
  55.  
  56. Traceback (most recent call last):
  57. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  58. current = current[int(bit)]
  59. ValueError: invalid literal for int() with base 10: 'tag'
  60.  
  61. During handling of the above exception, another exception occurred:
  62.  
  63. Traceback (most recent call last):
  64. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  65. (bit, current)) # missing attribute
  66. django.template.base.VariableDoesNotExist: Failed lookup for key [tag] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cb70>, \'forloop\': {\'first\': True, \'revcounter\': 3, \'counter\': 1, \'revcounter0\': 2, \'parentloop\': {}, \'counter0\': 0, \'last\': False}}, {}]'
  67. Exception while resolving variable 'wrapper_class' in template 'bootstrap3/whole_uni_form.html'.
  68. Traceback (most recent call last):
  69. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  70. current = current[bit]
  71. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  72. raise KeyError(key)
  73. KeyError: 'wrapper_class'
  74.  
  75. During handling of the above exception, another exception occurred:
  76.  
  77. Traceback (most recent call last):
  78. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  79. if isinstance(current, BaseContext) and getattr(type(current), bit):
  80. AttributeError: type object 'Context' has no attribute 'wrapper_class'
  81.  
  82. During handling of the above exception, another exception occurred:
  83.  
  84. Traceback (most recent call last):
  85. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  86. current = current[int(bit)]
  87. ValueError: invalid literal for int() with base 10: 'wrapper_class'
  88.  
  89. During handling of the above exception, another exception occurred:
  90.  
  91. Traceback (most recent call last):
  92. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  93. (bit, current)) # missing attribute
  94. django.template.base.VariableDoesNotExist: Failed lookup for key [wrapper_class] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cb70>, \'forloop\': {\'first\': True, \'revcounter\': 3, \'counter\': 1, \'revcounter0\': 2, \'parentloop\': {}, \'counter0\': 0, \'last\': False}}, {}]'
  95. Exception while resolving variable 'tag' in template 'bootstrap3/whole_uni_form.html'.
  96. Traceback (most recent call last):
  97. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  98. current = current[bit]
  99. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  100. raise KeyError(key)
  101. KeyError: 'tag'
  102.  
  103. During handling of the above exception, another exception occurred:
  104.  
  105. Traceback (most recent call last):
  106. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  107. if isinstance(current, BaseContext) and getattr(type(current), bit):
  108. AttributeError: type object 'Context' has no attribute 'tag'
  109.  
  110. During handling of the above exception, another exception occurred:
  111.  
  112. Traceback (most recent call last):
  113. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  114. current = current[int(bit)]
  115. ValueError: invalid literal for int() with base 10: 'tag'
  116.  
  117. During handling of the above exception, another exception occurred:
  118.  
  119. Traceback (most recent call last):
  120. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  121. (bit, current)) # missing attribute
  122. django.template.base.VariableDoesNotExist: Failed lookup for key [tag] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cb70>, \'forloop\': {\'first\': True, \'revcounter\': 3, \'counter\': 1, \'revcounter0\': 2, \'parentloop\': {}, \'counter0\': 0, \'last\': False}}, {}]'
  123. Exception while resolving variable 'tag' in template 'bootstrap3/whole_uni_form.html'.
  124. Traceback (most recent call last):
  125. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  126. current = current[bit]
  127. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  128. raise KeyError(key)
  129. KeyError: 'tag'
  130.  
  131. During handling of the above exception, another exception occurred:
  132.  
  133. Traceback (most recent call last):
  134. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  135. if isinstance(current, BaseContext) and getattr(type(current), bit):
  136. AttributeError: type object 'Context' has no attribute 'tag'
  137.  
  138. During handling of the above exception, another exception occurred:
  139.  
  140. Traceback (most recent call last):
  141. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  142. current = current[int(bit)]
  143. ValueError: invalid literal for int() with base 10: 'tag'
  144.  
  145. During handling of the above exception, another exception occurred:
  146.  
  147. Traceback (most recent call last):
  148. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  149. (bit, current)) # missing attribute
  150. django.template.base.VariableDoesNotExist: Failed lookup for key [tag] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cef0>, \'forloop\': {\'first\': False, \'revcounter\': 2, \'counter\': 2, \'revcounter0\': 1, \'parentloop\': {}, \'counter0\': 1, \'last\': False}}, {}]'
  151. Exception while resolving variable 'wrapper_class' in template 'bootstrap3/whole_uni_form.html'.
  152. Traceback (most recent call last):
  153. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  154. current = current[bit]
  155. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  156. raise KeyError(key)
  157. KeyError: 'wrapper_class'
  158.  
  159. During handling of the above exception, another exception occurred:
  160.  
  161. Traceback (most recent call last):
  162. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  163. if isinstance(current, BaseContext) and getattr(type(current), bit):
  164. AttributeError: type object 'Context' has no attribute 'wrapper_class'
  165.  
  166. During handling of the above exception, another exception occurred:
  167.  
  168. Traceback (most recent call last):
  169. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  170. current = current[int(bit)]
  171. ValueError: invalid literal for int() with base 10: 'wrapper_class'
  172.  
  173. During handling of the above exception, another exception occurred:
  174.  
  175. Traceback (most recent call last):
  176. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  177. (bit, current)) # missing attribute
  178. django.template.base.VariableDoesNotExist: Failed lookup for key [wrapper_class] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cef0>, \'forloop\': {\'first\': False, \'revcounter\': 2, \'counter\': 2, \'revcounter0\': 1, \'parentloop\': {}, \'counter0\': 1, \'last\': False}}, {}]'
  179. Exception while resolving variable 'tag' in template 'bootstrap3/whole_uni_form.html'.
  180. Traceback (most recent call last):
  181. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  182. current = current[bit]
  183. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  184. raise KeyError(key)
  185. KeyError: 'tag'
  186.  
  187. During handling of the above exception, another exception occurred:
  188.  
  189. Traceback (most recent call last):
  190. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  191. if isinstance(current, BaseContext) and getattr(type(current), bit):
  192. AttributeError: type object 'Context' has no attribute 'tag'
  193.  
  194. During handling of the above exception, another exception occurred:
  195.  
  196. Traceback (most recent call last):
  197. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  198. current = current[int(bit)]
  199. ValueError: invalid literal for int() with base 10: 'tag'
  200.  
  201. During handling of the above exception, another exception occurred:
  202.  
  203. Traceback (most recent call last):
  204. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  205. (bit, current)) # missing attribute
  206. django.template.base.VariableDoesNotExist: Failed lookup for key [tag] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cef0>, \'forloop\': {\'first\': False, \'revcounter\': 2, \'counter\': 2, \'revcounter0\': 1, \'parentloop\': {}, \'counter0\': 1, \'last\': False}}, {}]'
  207. Exception while resolving variable 'tag' in template 'bootstrap3/whole_uni_form.html'.
  208. Traceback (most recent call last):
  209. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  210. current = current[bit]
  211. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  212. raise KeyError(key)
  213. KeyError: 'tag'
  214.  
  215. During handling of the above exception, another exception occurred:
  216.  
  217. Traceback (most recent call last):
  218. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  219. if isinstance(current, BaseContext) and getattr(type(current), bit):
  220. AttributeError: type object 'Context' has no attribute 'tag'
  221.  
  222. During handling of the above exception, another exception occurred:
  223.  
  224. Traceback (most recent call last):
  225. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  226. current = current[int(bit)]
  227. ValueError: invalid literal for int() with base 10: 'tag'
  228.  
  229. During handling of the above exception, another exception occurred:
  230.  
  231. Traceback (most recent call last):
  232. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  233. (bit, current)) # missing attribute
  234. django.template.base.VariableDoesNotExist: Failed lookup for key [tag] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cf28>, \'forloop\': {\'first\': False, \'revcounter\': 1, \'counter\': 3, \'revcounter0\': 0, \'parentloop\': {}, \'counter0\': 2, \'last\': True}}, {}]'
  235. Exception while resolving variable 'wrapper_class' in template 'bootstrap3/whole_uni_form.html'.
  236. Traceback (most recent call last):
  237. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  238. current = current[bit]
  239. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  240. raise KeyError(key)
  241. KeyError: 'wrapper_class'
  242.  
  243. During handling of the above exception, another exception occurred:
  244.  
  245. Traceback (most recent call last):
  246. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  247. if isinstance(current, BaseContext) and getattr(type(current), bit):
  248. AttributeError: type object 'Context' has no attribute 'wrapper_class'
  249.  
  250. During handling of the above exception, another exception occurred:
  251.  
  252. Traceback (most recent call last):
  253. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  254. current = current[int(bit)]
  255. ValueError: invalid literal for int() with base 10: 'wrapper_class'
  256.  
  257. During handling of the above exception, another exception occurred:
  258.  
  259. Traceback (most recent call last):
  260. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  261. (bit, current)) # missing attribute
  262. django.template.base.VariableDoesNotExist: Failed lookup for key [wrapper_class] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cf28>, \'forloop\': {\'first\': False, \'revcounter\': 1, \'counter\': 3, \'revcounter0\': 0, \'parentloop\': {}, \'counter0\': 2, \'last\': True}}, {}]'
  263. Exception while resolving variable 'tag' in template 'bootstrap3/whole_uni_form.html'.
  264. Traceback (most recent call last):
  265. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 879, in _resolve_lookup
  266. current = current[bit]
  267. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/context.py", line 77, in __getitem__
  268. raise KeyError(key)
  269. KeyError: 'tag'
  270.  
  271. During handling of the above exception, another exception occurred:
  272.  
  273. Traceback (most recent call last):
  274. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 885, in _resolve_lookup
  275. if isinstance(current, BaseContext) and getattr(type(current), bit):
  276. AttributeError: type object 'Context' has no attribute 'tag'
  277.  
  278. During handling of the above exception, another exception occurred:
  279.  
  280. Traceback (most recent call last):
  281. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 894, in _resolve_lookup
  282. current = current[int(bit)]
  283. ValueError: invalid literal for int() with base 10: 'tag'
  284.  
  285. During handling of the above exception, another exception occurred:
  286.  
  287. Traceback (most recent call last):
  288. File "/home/art-solopov/.virtualenvs/mdwiki/lib/python3.4/site-packages/django/template/base.py", line 901, in _resolve_lookup
  289. (bit, current)) # missing attribute
  290. django.template.base.VariableDoesNotExist: Failed lookup for key [tag] in '[{\'None\': None, \'True\': True, \'False\': False}, {\'form_id\': \'new_article_form\', \'True\': True, \'formset_error_title\': None, \'field_class\': \'\', \'form_style\': \'\', \'form\': <NewArticleForm bound=False, valid=False, fields=(name;slug;body)>, \'form_method\': \'post\', \'form_action\': \'\', \'form_show_labels\': True, \'form_show_errors\': True, \'False\': False, \'flat_attrs\': \' id="new_article_form"\', \'label_size\': 0, \'include_media\': True, \'template_pack\': \'bootstrap3\', \'form_attrs\': {\'id\': \'new_article_form\'}, \'inputs\': [<crispy_forms.layout.Submit object at 0x7f4e51f617f0>], \'label_class\': \'\', \'is_formset\': False, \'disable_csrf\': False, \'None\': None, \'error_text_inline\': True, \'form_class\': \'\', \'html5_required\': False, \'form_error_title\': None, \'attrs\': {\'id\': \'new_article_form\'}, \'form_tag\': True, \'help_text_inline\': False, \'csrf_token\': <SimpleLazyObject: \'Cq3kEBZtUGmqWaMTEs4DDcEZszQ3CzIt\'>}, {}, {}, {\'field\': <django.forms.boundfield.BoundField object at 0x7f4e51f0cf28>, \'forloop\': {\'first\': False, \'revcounter\': 1, \'counter\': 3, \'revcounter0\': 0, \'parentloop\': {}, \'counter0\': 2, \'last\': True}}, {}]'
  291. [28/Mar/2016 23:01:42] "GET /new_article HTTP/1.1" 200 2858
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement