Re: Making Django more PaaS-friendly

2016-04-15 Thread Curtis Maloney
On 14/04/16 05:57, Carl Meyer wrote: Hi James et al, In general, I like the idea of adding a helper to Django to read settings from the environment. I think this helper should be kept as simple and non-magical as is reasonable. Thus: - I'm in favor of a flexible helper function that can be

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

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

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

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

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