我怎样才能找到文件/app/.heroku/python/.../password_reset_email.html?

时间:2018-06-10 05:38:48

标签: django python-2.7 heroku

当我在本地运行我的应用程序时,其余的密码和其他所有内容都能正常运行。一旦我在Heroku上运行应用程序,就会显示这些错误,但我无法弄清楚如何找到这个模板。如果有人帮我解决这个问题,我将不胜感激。

回溯:

File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/auth/views.py" in inner
  54.         return func(*args, **kwargs)

File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/auth/views.py" in password_reset
  306.             form.save(**opts)

File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/auth/forms.py" in save
  289.                 email, html_email_template_name=html_email_template_name,

File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/auth/forms.py" in send_mail
  236.         body = loader.render_to_string(email_template_name, context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  68.     return template.render(context, request)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/backends/django.py" in render
  66.             return self.template.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render
  207.                     return self._render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in _render
  199.         return self.nodelist.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  40.         output = self.nodelist.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  63.                 result = self.nodelist.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/app/.heroku/python/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  458.             url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)

File "/app/.heroku/python/lib/python2.7/site-packages/django/urls/base.py" in reverse
  91.     return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))

File "/app/.heroku/python/lib/python2.7/site-packages/django/urls/resolvers.py" in _reverse_with_prefix
  497.         raise NoReverseMatch(msg)

异常类型:/ users / password_reset /的NoReverseMatch 例外值:反向' password_reset_confirm'未找到。 ' password_reset_confirm'不是有效的视图函数或模式名称。

0 个答案:

没有答案