Your first Wagtail site - problem

235 views
Skip to first unread message

Michał Turkowski

unread,
Jul 5, 2015, 4:09:26 AM7/5/15
to wag...@googlegroups.com
Hello
Im trying to make  a blog from docs (getting started) step by step but there are some problems:

1. replace code with this :

% extends "base.html" %}

{% load static core_tags wagtailcore_tags %}

{% block body_class %}template-homepage{% endblock %}

{% block content %}
    {{ self.body|richtext }}
{% endblock %}

after change:
TemplateSyntaxError at /
'core_tags' is not a valid tag library: Template library core_tags not found, tried 

2. add image :
{% if self.main_image %}
      {% image self.main_image width-400 %}
    {% endif %}

after change:
Invalid block tag: 'image', expected 'elif', 'else' lub 'endif'


Joss Ingram

unread,
Jul 7, 2015, 10:26:10 AM7/7/15
to wag...@googlegroups.com
You'll need {% load wagtailimages_tags %} to use the image bit. 

what is core_tags? Is that a custom thing?

Matthew Westcott

unread,
Jul 7, 2015, 11:20:57 AM7/7/15
to wag...@googlegroups.com
Apologies - there were a few errors in the tutorial, as a result of us changing the project template in the latest release. These are now fixed:
http://docs.wagtail.io/en/latest/getting_started/tutorial.html

(Note for anyone else wishing to follow this tutorial - it's written against the not-yet-released Wagtail 1.0, so for now you'll need to run
pip install "wagtail==1.0rc2"
in place of the first step.)

Cheers,
- Matt
Reply all
Reply to author
Forward
0 new messages