diefenbach / django-lfs

An online-shop based on Django
http://www.getlfs.com
BSD 3-Clause "New" or "Revised" License
622 stars 222 forks source link

using TemplateResponse in every view #24

Closed suvit closed 7 years ago

suvit commented 12 years ago

Please, remove old way of returning Response. Now lfs in every view returns HttpResponse (or render_to_response).

I offer to use TemplateResponse to add/modifie some vars in context in overloaded view (simular to inheritance of views)

Link to TemplateResponse https://docs.djangoproject.com/en/dev/ref/template-response/

TemplateResponse is introduced in django 1.3, so remove support of django<1.3

suvit commented 11 years ago

more better solution is to use class-based-views, and inherit all the lfs views from LFSView