SHARE
TWEET

UndefinedError: 'register_form' is undefined

a guest Apr 21st, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     jinja2.exceptions.UndefinedError
  2.     UndefinedError: 'register_form' is undefined
  3.  
  4.         Traceback (most recent call last)
  5.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1994, in __call__
  6.         return self.wsgi_app(environ, start_response)
  7.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask_socketio/__init__.py", line 42, in __call__
  8.         start_response)
  9.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/engineio/middleware.py", line 49, in __call__
  10.         return self.wsgi_app(environ, start_response)
  11.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
  12.         response = self.handle_exception(e)
  13.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
  14.         reraise(exc_type, exc_value, tb)
  15.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
  16.         response = self.full_dispatch_request()
  17.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
  18.         rv = self.handle_user_exception(e)
  19.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
  20.         reraise(exc_type, exc_value, tb)
  21.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
  22.         rv = self.dispatch_request()
  23.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask_debugtoolbar/__init__.py", line 125, in dispatch_request
  24.         return view_func(**req.view_args)
  25.         File "/home/reznov/Desktop/ubook/develop/client/views.py", line 107, in index
  26.         return render_template('index.html', form_login=form_login)
  27.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template
  28.         context, ctx.app)
  29.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/flask/templating.py", line 116, in _render
  30.         rv = template.render(context)
  31.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
  32.         return self.environment.handle_exception(exc_info, True)
  33.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
  34.         reraise(exc_type, exc_value, tb)
  35.         File "/home/reznov/Desktop/ubook/develop/abonent/templates/abonent/index.html", line 1, in top-level template code
  36.         {% extends 'base_abonent.html' %}
  37.         File "/home/reznov/Desktop/ubook/develop/templates/base_abonent.html", line 41, in top-level template code
  38.         {% block content %}
  39.         File "/home/reznov/Desktop/ubook/develop/abonent/templates/abonent/index.html", line 196, in block "content"
  40.         {{register_form.master_salon.label}}
  41.         File "/home/reznov/Desktop/ubook/venv/lib/python2.7/site-packages/jinja2/environment.py", line 430, in getattr
  42.         return getattr(obj, attribute)
  43.         UndefinedError: 'register_form' is undefined
RAW Paste Data
Top