I want to create a generic country view that populates data based on the what country i clicked on a map. The current URL looks like:
# Country View URL
url(r'^country/' , 'wiki.views.country',
name = 'wiki_country'),
And the view is:
def country(request):
return render_to_response("wiki/country.html")
This is fine if I want a separate page for each country. I was reading elsewhere that there is no simple way to get a variable from a template in Django. What I would want is for the link in the template not only have the URL, but also a value ("Country Name") that then allows me to dynamically populate a single countryView template.