How can I create a dropdown in my template using the list values present in my view. I do not want this to be present in my models.py. My views.py has generated some values which I would like to display in dropdown.
Example: Say I have z=[1,2,3,4]. I would like this value to be displayed in a drop down box in the template.