Re: best way change template base my app

2015-05-13 Thread André Luiz
extends should always be on first line of file and it accepts a variable as argument so you can define which template should be used on your view. # views.py def home(request): if request.session.type == 1: base = 'base.html' else: base = 'base_other.html' context = {

Re: django 1.8 customize site title

2015-05-04 Thread André Luiz
You can do it in in urls.py for example[1] [1]: https://gist.github.com/dvl/0bed149bee4556b32d7a 2015-05-02 5:55 GMT-03:00 drakkan : > Hi, > > I would like to customize django 1.8 site title without override the > template using AdminSite, > > I customized AdminSite as per doc here: > > > https

Re: How to set response headers in DetailView

2014-08-22 Thread André Luiz
I did it two days ago rewriting the render_to_response method. for reference http://stackoverflow.com/questions/1628/send-a-file-through-django-class-based-views/16287950#16287950 2014-08-22 18:55 GMT-03:00 Lucas Simon Rodrigues Magalhaes < lucass...@gmail.com>: > Hello, > > I see this tuto