Hey guys Im having an issue with a Mezzanine installation. Im using the 
latest version of Mezzanine and Django on Python 3.4 in a virtualenv. The 
database is MariaDB 10. 

When you use the blog/archive URLs they work fine when you enter the year 
say /blog/archive/2015 but if you try and add the month (i.e. 
/blog/archive/2015/10) it does not work. I have tried using the stock 
template as well and it isn't working for me. Anybody have any ideas why 
this is happening?

This is the code from my template:

{% extends "base.html" %}
{% load i18n mezzanine_tags blog_tags keyword_tags disqus_tags %}

{% block meta_title %}{% if page %}{{ page.meta_title }}{% else %}{% trans 
"Blog" %}{% endif %}{% endblock %}

{% block meta_keywords %}{% metablock %}
{% keywords_for page as keywords %}
{% for keyword in keywords %}
    {% if not forloop.first %}, {% endif %}
    {{ keyword }}
{% endfor %}
{% endmetablock %}{% endblock %}

{% block meta_description %}{% metablock %}
{{ page.description }}
{% endmetablock %}{% endblock %}

{% block title %}
{% if page %}
{% editable page.title %}{{ page.title }}{% endeditable %}
{% else %}
{% trans "Blog" %}
{% endif %}
{% endblock %}

{% block breadcrumb_menu %}
{{ block.super }}
{% if tag or category or year or month or author %}
<li>{% spaceless %}
{% if tag %}
    {% trans "Tag:" %} {{ tag }}
{% else %}{% if category %}
    {% trans "Category:" %} {{ category }}
{% else %}{% if year or month %}
    {% if month %}{{ month }}, {% endif %}{{ year }}
{% else %}{% if author %}
    {% trans "Author:" %} {{ author.get_full_name|default:author.username }}
{% endif %}{% endif %}{% endif %}{% endif %}
{% endspaceless %}
</li>
{% endif %}
{% endblock %}

{% block main %}

<!-- Blog Wrap Begin -->
<section class="blog-wrap">
  <div class="container">
    <div class="col-md-8 post-section">
    {% if tag or category or year or month or author %}
        {% block blog_post_list_filterinfo %}
        <h2>
        {% if tag %}
            {% trans "Viewing posts tagged" %} {{ tag }}
        {% else %}{% if category %}
            {% trans "Viewing posts for the category" %} {{ category }}
        {% else %}{% if year or month %}
            {% trans "Viewing posts from" %} {% if month %}{{ month }}, {% 
endif %}
            {{ year }}
        {% else %}{% if author %}
            {% trans "Viewing posts by" %}
            {{ author.get_full_name|default:author.username }}
        {% endif %}{% endif %}{% endif %}{% endif %}
    {% endblock %}
        </h2>
    {% endif %}
    {% for blog_post in blog_posts.object_list %}
      <article class="post-content">
        <div class="post-meta">
          <div class="date">
            <span>{% blocktrans with 
sometime=blog_post.publish_date|date:"M d" %}{{ sometime }}{% endblocktrans 
%}</span>
          </div>
          <div class="like">
            <a href="#"><i class="fa fa-heart"></i> 0</a>
          </div>
        </div><!-- /.post-meta -->
        <div class="post-inner">
        {% if settings.BLOG_USE_FEATURED_IMAGE and blog_post.featured_image 
%}
          <div class="post-media">
            <a href="blog-single.html"><img src="{{ MEDIA_URL }}{% 
thumbnail blog_post.featured_image 960 540 %}" alt="Blog images"></a>
          </div>
        {% endif %}
          <div class="post-head">
            <div class="title"><a 
href="{{blog_post.get_absolute_url}}"><h2>{{blog_post.title}}</h2></a></div>
          </div>
          <div class="post-text">
            {% block blog_post_detail_content %}
            {{ 
blog_post.content|richtext_filters|safe|truncatewords_html:50 }}
            {% endblock %}
          </div>
          <div class="readmore"><a 
href="{{blog_post.get_absolute_url}}">Read More</a></div>
        </div><!-- /.post-inner -->
      </article><!-- /.post-content -->
    {% endfor %}
    
    {% pagination_for blog_posts %}

      <div class="pagination-wrap col-md-12">
        <ul class="pagination">
          <li>
            <a href="#" aria-label="Previous">
              <span aria-hidden="true">&laquo;</span>
            </a>
          </li>
          <li><a href="#" class="active"><span>1</span></a></li>
          <li><a href="#"><span>2</span></a></li>
          <li><a href="#"><span>3</span></a></li>
          <li>
            <a href="#" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
            </a>
          </li>
        </ul><!-- /.pagination -->
      </div><!-- /.pagination-wrap -->

    </div><!-- /.post-section -->
    {% include "blog/blog_sidebar.html" %}
  </div><!-- /.container -->
</section><!-- /.blog-wrap -->
<!-- Blog Wrap End -->

{% endblock %}


I'm skeptical that its a template issue considering the original template 
won't display the content. Does anyone have any ideas as to what's going 
on? 


-- 
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.

Reply via email to