2👍
✅
You should be able to access your variable via self.request.GET.get('number')
in the get_context_data
method.
Example of template view (Python3 version)
class MyTemplateView(TemplateView):
template_name = 'path/to/tempplate.html'
def get_context_data(self, **kwargs):
valor = self.request.GET.get('number')
return super().get_context_data(**kwargs)
Source:stackexchange.com