Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter handle no funciona correctamente #57

Closed
Scot3004 opened this issue Jul 19, 2017 · 1 comment
Closed

Twitter handle no funciona correctamente #57

Scot3004 opened this issue Jul 19, 2017 · 1 comment

Comments

@Scot3004
Copy link
Member

Cuando se adiciona el twitter handle en un post la compilación revienta

Build Failure :'(

Building of the artifact “blog/first-post/index.html” failed. This is what we know about the problem:

Traceback (most recent call last):
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/builder.py", line 797, in update
    yield ctx
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/builder.py", line 1042, in build_artifact
    build_func(artifact)
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/build_programs.py", line 183, in build_artifact
    self.source['_template'], this=self.source)
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/builder.py", line 652, in render_template_into
    this=this, **extra)
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/lektor/environment.py", line 517, in render_template
    return self.jinja_env.get_or_select_template(name).render(ctx)
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Volumes/Extended/frontend/Proyectos/scot3004/django-quilla-web/templates/blog-post.html", line 2, in top-level template code
    {% from "macros/blog.html" import render_blog_post %}
  File "/Volumes/Extended/frontend/Proyectos/scot3004/django-quilla-web/templates/layout.html", line 55, in top-level template code
    {% block body %}{% endblock %}
  File "/Volumes/Extended/frontend/Proyectos/scot3004/django-quilla-web/templates/blog-post.html", line 17, in block "body"
    <a href="https://twitter.com/{{ post.twitter_handle}}">
  File "/usr/local/lib/lektor/lib/python2.7/site-packages/jinja2/environment.py", line 430, in getattr
    return getattr(obj, attribute)
UndefinedError: 'post' is undefined
@Scot3004
Copy link
Member Author

Resuelto #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant