Re: Collectstatic and determine which files need to be updated by comparing their checksum

2016-04-15 Thread Daniel Blasco
Thanks Tim for the info. This is the discussion mentioned in the ticket (from 2012) https://groups.google.com/d/topic/django-developers/vtMVq8jwnf8/discussion The solutions that ptone suggests in the ticket don't really work for Heroku. Also, to sync static files from local is not a good soluti

Usage of DjangoRuntimeWarning

2016-04-15 Thread charettes
During a review session I noticed the existence of `DjangoRuntimeWarning`[1] which was introduced in order to be subclassed to warn about about cache keys that are not compatible with Memcache[2]. As our test suite demonstrate subclassing `RuntimeWarning` can be quite useful when you want to con

Re: Enforcing a max size for form field values read into memory (review/determination of next steps needed)

2016-04-15 Thread Cristiano Coelho
I have a small concern. The two new settings looks like will work on uploaded files count (multipart encoding types) and number of fields sent (url encoded encoding). What happens to other request types such as JSON, XML, plain text etc... If you are using django-rest-framework, how would the f

JsonpResponse subclass of HttpResponse helps easily create JSONP-encoded responses.

2016-04-15 Thread brightcells
Django 1.7 realease JsonResponse subclass of HttpResponse helps easily create JSON-encoded responses. As discussed in https://code.djangoproject.com/ticket/17942#comment:6 - Trying to support JSONP callbacks would require to somehow allow Cross-origin resource sharing. I would say it's n

Re: JsonpResponse subclass of HttpResponse helps easily create JSONP-encoded responses.

2016-04-15 Thread Yoong Kang Lim
Would it be better to add an optional parameter to the constructor of JsonResponse instead of a new subclass? On 16 Apr 2016 12:06 PM, wrote: > Django 1.7 realease JsonResponse subclass of HttpResponse helps easily > create JSON-encoded responses. > > As discussed in https://code.djangoproject.c