Try <a href= "{% url "article.views.month" year month 'prev' %}"> instead.


On 14 May 2014 13:26, hito koto <[email protected]> wrote:

> I'm also have the erroes
>
> Exception Type: NoReverseMatch  Exception Value:
>
> u'article.views.main year|add' is not a registered namespace
>
>
>
>
> 2014年5月14日水曜日 12時19分06秒 UTC+9 hito koto:
>
>> Hello,
>>
>> this time i have this the erroes: Please help me;
>>
>> Exception Type: NoReverseMatch  Exception Value:
>>
>> Reverse for 'article.views.month year month 'prev'' with arguments '()' and 
>> keyword arguments '{}' not found. 0 pattern(s) tried: []
>>
>>
>>
>>
>>  this is my the urls.py;
>>
>> url(r"^month/(?P<year>\d+)/(?P<month>\d+)/(prev|next)/$",
>> "article.views.month"),
>> url(r"^month/(?P<year>\d+)/(?P<month>\d+)/$", "article.views.month"),
>> url(r"^month/$", "article.views.month"),
>>
>> and this is my the template html:
>>
>> <a href= "{% url "article.views.month year month 'prev'" %}">&lt;&lt;
>> Prev</a>
>> <a href= "{% url "article.views.month year month 'next'" %}">Next
>> &gt;&gt;</a>
>>
>> <h4>{{ mname }} {{ year }}</h4>
>>
>> <div class="month">
>>     <table>
>>
>>     <tr>
>>         <td class="empty">Mon</td>
>>         <td class="empty">Tue</td>
>>         <td class="empty">Wed</td>
>>         <td class="empty">Thu</td>
>>         <td class="empty">Fri</td>
>>         <td class="empty">Sat</td>
>>         <td class="empty">Sun</td>
>>     </tr>
>>
>>     {% for week in month_days %}
>>         <tr>
>>         {% for day, entries, current in week %}
>>
>>             <!-- TD style: empty | day | current; onClick handler and
>> highlight  -->
>>             <td class= {% if day == 0 %}"empty"{% endif %}
>>             {% if day != 0 and not current %}"day"{% endif %}
>>             {% if day != 0 and current %}"current"{% endif %}
>>             {% if day != 0 %}
>>                 onClick="parent.location='{% url cal.views.day year month
>> day %}'"
>>                 onMouseOver="this.bgColor='#eeeeee';"
>>                 onMouseOut="this.bgColor='white';"
>>             {% endif %} >
>>
>>             <!-- Day number and entry snippets -->
>>             {% if day != 0 %}
>>                 {{ day }}
>>                 {% for entry in entries %}
>>                     <br />
>>                     <b>{{ entry.creator }}</b>: {{ entry.short|safe }}
>>                 {% endfor %}
>>             {% endif %}
>>             </td>
>>         {% endfor %}
>>         </tr>
>>     {% endfor %}
>>     </table>
>>
>>     <div class="clear"></div>
>> </div>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eb79a5c7-81b4-4ec7-8b61-16f3a62202f7%40googlegroups.com<https://groups.google.com/d/msgid/django-users/eb79a5c7-81b4-4ec7-8b61-16f3a62202f7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHqTbjk2AJp%3DQ5Ek9UDmucSt5qUT4yqQGYe-8e%2Bf5yuJRMTumQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to