why it does not work ? It suppose to work, in python I can use this like this function, can any one explain me please ?
views:
class MiVista(View):
def get(self, request, var):
self.var = 'Hello'
# <la logica de la vista>
return HttpResponse(self.var)
one = MiVista()
one.get(222222)
urls:
url(r'^indice/', MiVista.as_view()),
So the functions does not work like function in python using POO ?
Thank you guys!