urls.py:
app_name='listing'
urlpatterns = [
url(r'^listing/select/$',views.platformselect,name='listingselect'),
url(r'^listing/',views.listingpage,name='listingpage'),
]
views.py:
def platformselect(request):
return render(request,'listing/platform_select.html')
platform_selection.html:
<a href="{% url 'listing:listingpage' %}">amazon</a>
<a href="{% url 'listing:listingpage' %}">ebay</a>
<a href="{% url 'listing:listingpage' %}">google</a>
Greetings. How can I change the urls according to the <a> options. For example when I click the 'amazon' anchor tag I want it go to "mysite.com/listing/amazon". Same for the other options. How can I change the sites url depending on the anchor tags?