Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango URLs - How to pass in multiple caterories via the clean URL without the need for?
    primarykey
    data
    text
    <p>I want to stay way from GET params. Don't want to use POST and I have at least two different categories to build the URL for. </p> <p>The visitors are first asked to choose a location wich can be one of, for example: <a href="http://foo.com/United-States/" rel="nofollow noreferrer">http://foo.com/United-States/</a> <strong>||</strong> <a href="http://foo.com/United-States/California/" rel="nofollow noreferrer">http://foo.com/United-States/California/</a> <strong>||</strong> <a href="http://foo.com/United-States/California/San-Francisco-Region/" rel="nofollow noreferrer">http://foo.com/United-States/California/San-Francisco-Region/</a> <strong>||</strong> <a href="http://foo.com/United-States/California/San-Francisco/" rel="nofollow noreferrer">http://foo.com/United-States/California/San-Francisco/</a></p> <p>Once a location is selected, then they can pick a category which can be one of for example:</p> <p><a href="http://foo.com/Electronics/" rel="nofollow noreferrer">http://foo.com/Electronics/</a> <strong>||</strong> <a href="http://foo.com/Electronics/Camera/" rel="nofollow noreferrer">http://foo.com/Electronics/Camera/</a> <strong>||</strong> <a href="http://foo.com/Electronics/Camera/Digital/" rel="nofollow noreferrer">http://foo.com/Electronics/Camera/Digital/</a> <strong>||</strong> <a href="http://foo.com/Electronics/Camera/Digital/SLR/" rel="nofollow noreferrer">http://foo.com/Electronics/Camera/Digital/SLR/</a></p> <p>So, how would I go about combining both of the above URL in one, once they are done with selecting the location and the category?</p> <p>I might need to pass in the page number for pagination. (<a href="http://foo.com/page/2/" rel="nofollow noreferrer">http://foo.com/page/2/</a>)</p> <p>I'd like to keep the URL clean and self explanatory. I know how to do one type of URL at a time but not combining multiple types. </p> <p>If I were to do a GET, then I would be doing: <a href="http://foo.com/?locid=23323&amp;catid=335&amp;page=2" rel="nofollow noreferrer">http://foo.com/?locid=23323&amp;catid=335&amp;page=2</a>, but I like to take advantage of Django's clean URL and stay way from the ?&amp; stuff.</p> <p>Thanks,</p> <p>VN44CA</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload