Hello Micah,

I tried this in the template:
<a href="?q={% if query %}?{{ request.REQUEST.q }}{% endif %}&page=
{{ publications.next_page_number }}">next</a>

The browser URL is:
http://127.0.0.1:8000/Search/?q=?&page=2

and this in the template:

 <a href="?q={% if query %}{{ query }}{% endif %}&page=
{{ publications.next_page_number }}">next</a>

The browser URL is:
http://127.0.0.1:8000/Search/?q=harris&page=2,

which is correct for q, but the error for both is still:

Request Method:         GET
Request URL:    http://127.0.0.1:8000/Search/
Exception Type:         MultiValueDictKeyError
Exception Value:

Key 'q' not found in <QueryDict: {}>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to