Re: How to Minify, obfuscate, and compress django code

2017-08-10 Thread Antonis Christofides
Hi, while it is not entirely clear what the original poster wants, if he's referring to JavaScript then django-compressor provides some support for that. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-08-10 03:43, Bernd Wechner wrote: > I'm a little confused as to wh

Re: Migration of auth.user to custom user

2017-08-10 Thread James Schneider
On Aug 4, 2017 12:36 AM, "Mike Dewhirst" wrote: I have read widely (including the docs) and been daunted by the notion of coverting auth.user into a custom user. I have data and wonder if there have been any recent recipes for doing this? On a related note, I'd recommend implementing a custom

Re: Row based permissions: In DB or App? ... farewell pain

2017-08-10 Thread guettli
Am Mittwoch, 9. August 2017 18:03:44 UTC+2 schrieb Vijay Khemlani: > > > https://django-guardian.readthedocs.io/en/stable/userguide/check.html#get-objects-for-user > > projects = get_objects_for_user(request.user, 'projects.view_project') > > > Thank you for providing this link. I guess it is new

Re: Row based permissions: In DB or App? ... farewell pain

2017-08-10 Thread Vijay Khemlani
It's still implemented like that in the background, but I'm not sure why do you call it slow. Did you run benchmarks? Profiling? Usually your own business logic will be the bottleneck of your application, not your permission checking. On Thu, Aug 10, 2017 at 5:15 AM, guettli wrote: > > > Am Mi

Re: Django Channels - Throttling/Traffic Management?

2017-08-10 Thread Andrew Godwin
Hi Jamie, I don't use Stack Overflow, so feel free to answer there yourself for posterity. As for the load-balancing bit, what I mean is that because the Channels model is that all workers draw from a single work-queue, there are no balancing artifacts like you can get from a plain round-robin mo