File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/Users/Sohail/PycharmProjects/smtrade/app/celery_creator.py", line 22, in __call__
return super(ContextTask, self).__call__(*args, **kwargs)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/Users/Sohail/PycharmProjects/smtrade/util/emailing.py", line 25, in send_mail
msg.html = render_template(template + '.html', **kwargs)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/Users/Sohail/PycharmProjects/smtrade/templates/emails/trade_requested.html", line 1, in top-level template code
{% extends 'base.html' %}
File "/Users/Sohail/PycharmProjects/smtrade/templates/base.html", line 2, in top-level template code
{% import "util.html" as util %}
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 1, in top-level template code
{% block doc -%}
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 4, in block "doc"
{%- block html %}
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 20, in block "html"
{% block body -%}
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 23, in block "body"
{% block content -%}
File "/Users/Sohail/PycharmProjects/smtrade/templates/base.html", line 50, in block "content"
{% block page_content %}
File "/Users/Sohail/PycharmProjects/smtrade/templates/emails/trade_requested.html", line 9, in block "page_content"
<h3><a href="{{ url_for('auth.login') }}">Login</a> to your account to check it out!</h3>
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask/helpers.py", line 312, in url_for
return appctx.app.handle_url_build_error(error, endpoint, values)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask/app.py", line 1641, in handle_url_build_error
reraise(exc_type, exc_value, tb)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/flask/helpers.py", line 305, in url_for
force_external=external)
File "/Users/Sohail/.virtualenvs/smtrade/lib/python3.5/site-packages/werkzeug/routing.py", line 1758, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.BuildError: Could not build url for endpoint 'auth.login'.