Re: Add extra fields to a ModelAdmin form

2018-05-02 Thread 'James Foley' via Django users
ng django 1.11. > > Thanks! > > Mark > > On Mon, Apr 30, 2018 at 1:41 AM, 'James Foley' via Django users < > django...@googlegroups.com > wrote: > >> So, I have a ModelAdmin that I need to add extra fields to. These fields >> do not exist on the model, but w

Add extra fields to a ModelAdmin form

2018-04-30 Thread 'James Foley' via Django users
So, I have a ModelAdmin that I need to add extra fields to. These fields do not exist on the model, but will be dynamically added to a custom ModelForm through the __init__ method, and logic inside clean will handle the returned data on save. I can't seem to find any solid information related

Re: Django Channels 2 poor performance and high CPU usage

2018-04-04 Thread 'James Foley' via Django users
a bit weird, >>> and scope is just a normal Python dictionary. Is it possible to put your >>> code up somewhere in a simple form so I can look over it? >>> >>> Andrew >>> >>> On Tue, Mar 27, 2018 at 4:11 AM, 'James Foley' via Django users &

Re: Django Channels 2 poor performance and high CPU usage

2018-03-28 Thread 'James Foley' via Django users
>> >> Andrew >> >> On Tue, Mar 27, 2018 at 4:11 AM, 'James Foley' via Django users < >> django...@googlegroups.com> wrote: >> >>> It looks like accessing scope for url kwargs is a big hit on >>> performance. In fact hitting scope for

Re: Django Channels 2 poor performance and high CPU usage

2018-03-28 Thread 'James Foley' via Django users
HAKING with the in-memory layer is a bit weird, and > scope is just a normal Python dictionary. Is it possible to put your code > up somewhere in a simple form so I can look over it? > > Andrew > > On Tue, Mar 27, 2018 at 4:11 AM, 'James Foley' via Django users < > djan

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread 'James Foley' via Django users
It looks like accessing scope for url kwargs is a big hit on performance. In fact hitting scope for anything seems to introduce some form of delay. I'm getting very mixed results so I'm unsure if this is now an issue with redis. It is definitely the python process using 100% of the CPU though.

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread 'James Foley' via Django users
Apologies for the double post, I've removed the other one. PYTHONASYNCIODEBUG doesn't appear to give me any warnings. This test I am running is only between two users, each user belonging to the same group. All messages received are pushed back out to all users and filtered clientside.