Re: include_block template tag

2020-08-19 Thread Sam Willis
Hi Carlton, Thanks for chipping in. As a long time user of Django (I first stated with it back in 2006) from my experience where is excels is in providing a full toolbox for building things for the web. The most successful “third party” apps and library’s tend to be very large editions of

Re: include_block template tag

2020-08-18 Thread Sam Willis
Hi Jure, I think this would be a great addition to Django! I also proposed something a few years ago which was almost identical (https://groups.google.com/d/msg/django-developers/-75sOjhJuRU/ax_TZJgRmPQJ) and had a basic implementation (it probably won't work anymore without some tweaks).

Re: Deprecating logout via GET

2020-03-04 Thread Sam Willis
Why not have the logout link take the user to a page asking them to confirm the logout, and have it as a POSTed form button from there? That adds a helpful confirmation page, removes the difficulties of styling a button as a link constantly (or changing the header design to a button). One

Re: Django security releases issued: 3.0.1, 2.2.9, and 1.11.27

2019-12-18 Thread Sam Willis
Hi, It looks to me like this has introduced a slight behaviour difference with 1.11 on python 2.7 than on 3.x: https://github.com/django/django/commit/f4cff43bf921fcea6a29b726eb66767f67753fa2#diff-e840e362abe9e625eee52d91897400bdR36 The release notes don't indicate what the difference in

Re: Align Django admin checkboxes

2017-08-30 Thread Sam Willis
I believe this is designed so that when there are multiple checkboxes in a line they look like this: On Monday, August 28,

Subresource Integrity

2017-01-25 Thread Sam Willis
Hi, You may have come across the (relatively) new subresource integrity (SRI)[1] security feature that is available in Chrome and Firefox (its coming to Edge[2] and Safari[3]) - it enables a hash to be provided as an attribute on a linked JavaScript or CSS tag that the browser can test

Re: Removing and renaming Django's Python 2 related helpers

2017-01-24 Thread Sam Willis
Hi, An alternative option with 'six' is to replace it with an alias of six propper (not vendored), something like this: # django/utils/six.py try: from six import * except ImportError: raise ImportError(( "`django.utils.six` is deprecated, install six from pypi "

Re: Add custom autoreload file tracking options setting

2017-01-05 Thread Sam Willis
Could one options be to replace the current devserver with the one from Werkzeug? It already uses watchdog (similar to watchman) for monitoring file system events and is well maintained. With Django now allowing dependancies, this seems like something that doesn't necessarily need to be

Re: Changing {% include %} to strip a trailing newline

2017-01-04 Thread Sam Willis
Could this be set within the template rather than the include tag? So for example have a new tag such as {% strip_final_new_line %} that when included at the end of a template immediately before the final new line would instruct it to be striped. This stops the user from having to remember to

Re: Joining the "Python 3 Statement"

2016-07-10 Thread Sam Willis
As far as I can tell the only place where Django's Python 2.x deprecation is stated is here https://www.djangoproject.com/weblog/2015/jun/25/roadmap/ I think it should be more prominently stated in the docs, and as 1.11 is supposedly the last to support 2.7 (according to the blog post) it may

Re: Channels integration plan, first draft

2015-12-17 Thread Sam Willis
Hi, To support file uploads or a large message body the http.request message could have an file_channel or body_channel (much like its reply_channel)? These would be something like http.request.file.Dj3Hd9J and would stream chunked file or body content in the same way as the http.response

Re: Proposal: The 'use' template tag, a cross between 'include' and 'extends'.

2014-09-04 Thread Sam Willis
PM UTC+1, Sam Willis wrote: > > Curtis, > > You are welcome to include it in your project and I'm happy to help out. > Depending on what happens here I may still release it as a simple > standalone app though. > > I do think this is the kind of thing that would do best in co

Re: Proposal: The 'use' template tag, a cross between 'include' and 'extends'.

2014-09-04 Thread Sam Willis
his) in core is a great idea. Just >> because it *can* be implemented in 3rd party code, doesn't mean it has to >> be. >> >> >> On Thursday, 4 September 2014 02:10:33 UTC+10, Sam Willis wrote: >>> >>> Hi All, >>> >>> I would like to

Re: Proposal: The 'use' template tag, a cross between 'include' and 'extends'.

2014-09-03 Thread Sam Willis
; I've been proposing years ago. >> >> >> >> Le mercredi 3 septembre 2014 18:24:17 UTC+2, Ian a écrit : >>> >>> On Wed, Sep 3, 2014 at 10:10 AM, Sam Willis <sam.w...@gmail.com> wrote: >>> > Although I have implemented this with the 'use' word, t