Django3.0 / async - use cases

2020-01-13 Thread Vitaliy Kucherivaiy
Hi Everyone, In Django 3.0 we have Asynchronous support But where and how to have any benefit from it at this point ? (as according to docs views/middlewares/ORM does not support it) do you have any practical/useful example where async can benefit now ? ~Vitaliy -- You received this message

Django 1.11 indexes

2017-01-28 Thread Vitaliy Kucherivaiy
Hi Everyone, Do I understand this correctly - now there are 2 ways to make a single field indexed in database: - FieldClass(db_index=True) - Model.Meta.indexes will it stay like this for future release or 1st approach will be deprecated/removed later ? -- You received this message because

Re: table prefix and question of possible solution

2011-02-04 Thread Vitaliy
so.. at least clas_prepared works I made some plugable application that does what I need - https://github.com/pydevua/django-table-prefix/tree/master/table_prefix bug general question is class_prepared signal safe and good way to do this ? -- You received this message because you are subscribed

table prefix and question of possible solution

2011-02-02 Thread Vitaliy
I have a case where I have a lot of django sites(partially with the same code) must run in a single mysql database in order to avoid conflicts in django.auth, content-types and other models tables for them must have unique prefix (since this data must be isolated for each site) Currently there i

Re: proposal: ask a queryset to not raise exceptions

2010-03-07 Thread Vitaliy Kulchevych
http://code.djangoproject.com/ticket/5741 On Sun, Mar 7, 2010 at 11:48 PM, Chris wrote: > In my projects, I use this pattern a lot: > > try: >    obj = SomeModel.objects.filter(**crazy_filters_here).latest() > except SomeModel.DoesNotExist: >    obj = None > > Basically, I throw a filter at a que

Re: RFC: Django history tracking

2006-06-19 Thread Vitaliy Fuks
> > It would be nice to record "who" made the change (optionally when there > > is a user with an id available). > > I was thinking of not pushing the use of such fields, because there is > no easy way to figure out how each applications handles > accounts/users. and > > I'd also like an automat

Re: RFC: Django history tracking

2006-06-17 Thread Vitaliy Fuks
Hi Uros, Great to see that your RFC is pretty much exactly what I was thinking (feature and implementation-wise) when I posted http://groups.google.com/group/django-developers/browse_thread/thread/d90001b1d043253e/77d36caaf8cfb071 It would be nice to record "who" made the change (optionally when

Object (not schema) versioning/history

2006-04-28 Thread Vitaliy Fuks
As I am thinking about using Django for a particular project I was wondering if anyone ever considered keeping track of object content history. For example, in a typical CMS/newspaper application with multiple contributors I'd like to keep track of actual changes made to some pieces of content by