[Django]-Django 1.5 giving 404s for pk > 999

6👍

✅

The request to request-publication/1000 is being caught by the year-archive view, since it matches the pattern r'^(?P<category>[-\w]+)/(?P<year>\d{4})/$ when a three-digit pk would not.

You therefore get a 404 as you have no items published in the year 1000 matching the slug “requests-publication”.

Leave a comment