Hello,
I've started learning Mezzanine over the past few weeks. I'm making my own
theme. I want to make an `about/` page containing the default "contact us"
form Mezzanine comes with. Here's what part of my project looks like in
directory. `PROJECT/myTheme/theme/templates/about`.
In the `about/` folder, I have `about-canvas.html` and
`includes/contact-form.html`.
`about-canvas.html` looks like this.
{% extends "base.html" %}
{% load mezzanine_tags i18n %}
TESTING HERE
{% include "includes/contact-form.html" %}
`includes/contact-form.html` looks like this
{% load mezzanine_tags i18n %}
{% block extra_head %}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block main %}
{{ block.super }}
{% if request.GET.sent %}
{% editable page.form.response %}
{{ page.form.response|richtext_filters|safe }}
{% endeditable %}
{% else %}
{% with page.form as page_form %}
{% editable page_form.content %}
{{ page_form.content|richtext_filters|safe }}
{% endeditable %}
{% endwith %}
{% errors_for form %}
<div class="container">
<form class="mezzanine-form" method="post"{% if form.is_multipart %}
enctype="multipart/form-data"{% endif %}>
{% fields_for form %}
<div class="form-actions">
<input class="btn btn-primary btn-lg" type="submit"
value="{% if page.form.button_text %}{{ page.form.button_text }}{% else
%}{% trans "Submit" %}{% endif %}">
</div>
</form>
</div>
{% endif %}
{% endblock %}
{% block extra_js %}
{{ block.super }}
<script>
$(function() {$('.mezzanine-form :input:visible:enabled:first').focus();});
</script>
{% endblock %}
Yet when I fire up `python manage.py runserver`, and head to
"http://127.0.0.1:8000/about/", it does not appear anything changed. I
don't see the phrase "TESTING HERE" on the page to indicate that Mezzanine
reads from my custom template.
What must I change so that Mezzanine will read `about-canvas.html` when I
go to "http://127.0.0.1:8000/about/"?
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.