Re: ModelAdmin with inlines: How to learn if/what has changed before the models are saved?

2014-12-20 Thread Alex Haylock
On 18/12/14 17:19, Carsten Fuchs wrote: > I would like to find out if anything has changed in the parent > model or the related (inline) models, and depending on the result, > update one of the parent model's fields before it is saved. > > Can you please tell me how can this be achieved? Take a

malicious requests?

2014-12-22 Thread Alex Haylock
Are there any known attack vectors that involve appending a period/ full-stop to a sites domain name? My Django application throws a handful of errors in production every day: ERROR: Invalid HTTP_HOST header: 'www.example.com.'. You may need to add u'www.example.com.' to ALLOWED_HOSTS. (note the

Re: malicious requests?

2014-12-22 Thread Alex Haylock
; > > > /Markus > > On Monday, December 22, 2014 12:44:25 PM UTC+1, Alex Haylock wrote: > > Are there any known attack vectors that involve appending a period/ > full-stop to a sites domain name? > > My Django application throws a handful of error

Re: malicious requests?

2014-12-22 Thread Alex Haylock
e (FQDN), which some browsers >> can send inthe Host header, you had to explicitly add another >> ALLOWED_HOSTS entry that included a trailing period. > >> In Django 1.7, the trailing dot is stripped when performing host >> validation, thus an entry with a trailing dot is