How do I get Pagination to Work?
A couple of years later, I ran into the same issue. In case there are others looking, it looks like this line:

{% for page, url in paginate.getPreviousUrls(5) %}


Should be:

{% for page, url in paginate.getPrevUrls(5) %}