Re: On ASGI...

2017-06-23 Thread Andrew Godwin
e that sync and async code can write to, on the other hand, it's often cleaner code to keep these separate (they could still be in the same package, just two different top-level classes you import). What I do still want is the ability for sync and async code to work with each other across p

Re: About migrations

2017-06-23 Thread Andrew Godwin
ou want to limit usage, then just have a linter rule in your project that rejects RunPython being committed by your developers. Andrew On Fri, Jun 23, 2017 at 2:25 AM, Marcin Nowak wrote: > Hi. > > At the begining please forgive my engilsh - i'm not a native speaker. > > I wr

Re: About migrations

2017-06-23 Thread Andrew Godwin
ing to change the core of the way Django works is going to come with a very high bar and me and others are going to want to see concrete proof of backwards-compatability, improvements to developer experience, and a person or people who are willing to put in all the work to make and land the pa

Re: Websocket, django-channels - an existing connection was forcibly closed by the remote host

2017-06-25 Thread Andrew Godwin
Please don't cross-post questions to both mailing lists. I will answer this on django-users after the weekend. Andrew On Sun, Jun 25, 2017 at 9:35 AM, Mike Johnson Jr wrote: > So I'm getting the error as described in the title of this post. > > I'm following this tut

Re: About migrations

2017-07-07 Thread Andrew Godwin
There is already a run-before constraint you can add to migrations for exactly this purpose! It's called "run_before" and is in the same format as the dependencies IIRC. Andrew On Fri, Jul 7, 2017 at 6:36 PM, Carl Meyer wrote: > On 07/07/2017 05:09 AM, Patryk Zawadzki wrote:

Rethinking ASGI & Channels

2017-07-12 Thread Andrew Godwin
ation I want to come back to once this work is mostly done. Thoughts/opinions would be much appreciated. Andrew -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and

Re: Rethinking ASGI & Channels

2017-07-13 Thread Andrew Godwin
arate thread (sync)/context (async) and then shuffling data over to the caller of receive() using queues etc. Andrew On Wed, Jul 12, 2017 at 10:50 AM, Artem Malyshev wrote: > Hi, > > I know we discussed it in private. But I want to bring some ideas in > public. > > During asgi_

Re: Django db backend not FIPS compliant

2017-07-16 Thread Andrew DiPrinzio
I am having the same problem. Anyone have a solution other than patch hashlib? On Wednesday, May 31, 2017 at 4:08:54 PM UTC-4, Adam Johnson wrote: > > After googling a bit I found this CPython ticket: > https://bugs.python.org/issue9216 . It turns out that the block is in > OpenSSL and not rea

Re: Django db backend not FIPS compliant

2017-07-16 Thread Andrew DiPrinzio
All, I have submitted a ticket where i propose the use of the "usedforsecurity=False" flag. Please take a look and comment if you have any thoughts. https://code.djangoproject.com/ticket/28401 On Sunday, July 16, 2017 at 7:12:50 PM UTC-4, Andrew DiPrinzio wrote: > > I am

Re: Rethinking ASGI & Channels

2017-07-23 Thread Andrew Godwin
On Fri, Jul 21, 2017 at 4:10 AM, Tom Christie wrote: > Hi Andrew, > > Thanks for writing that up so comprehensively! > > Definitely in favor of moving to a server:consumer interface - as you say > that doesn't preclude over-the-network from being one of the possible >

Re: Sending messages to the group does not work after a few minutes online

2017-08-05 Thread Andrew Godwin
It seems you send "close": True to the group when a connection comes in, which means that only one websocket at a time is going to be open in it (all others in the group will be disconnected when a new one connects) Andrew On Sun, Aug 6, 2017 at 9:48 AM, Luís Antonio De Marchi wro

#4796 - Needs an expert's eye.

2007-09-21 Thread Andrew Durdin
else could cast their eye over this patch. http://code.djangoproject.com/ticket/4796 Cheers, Andrew. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this gr

Re: #4796 - Needs an expert's eye.

2007-09-22 Thread Andrew Durdin
On Sep 22, 2:16 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Thanks, Andrew. That patch looks "intuitively" correct; it's in the > right area of code that I would have expected to find the problem, etc. > I'll have a think about it through tod

Re: #4796 - Needs an expert's eye.

2007-09-24 Thread Andrew Durdin
splay them, > because what they produce is dependent on the current locale setting. Ah, of course. I hadn't considered the possibility of changing locales while running. Cheers, Andrew. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Ticket #5172 discussion

2007-09-25 Thread Andrew Durdin
@register.filter def to(start, finish): start, finish = int(start), int(finish) if finish > start: step = 1 else: step = -1 return range(start, finish + step, step) @register.filter def every(seq, step): return seq[::step] Andrew --~--~-~--~~-

Re: repr for lazy translation

2007-09-26 Thread Andrew Durdin
cond string")) > is that really the way its thought to work? if so, it breaks BC and > its not handy and intuitive. Malcolm Tredinnick explains some of the reasons behind the lazy evaluation of i18n'd strings in this message: http://groups.google.com/group/django-developers/msg/9e8d

Re: Another urlpatterns proposal (add method column)

2007-10-03 Thread Andrew Durdin
GET, POST, HEAD, etc. Note that you'd have to consider how reversing the urls should work also -- would you have to specify the method when reversing, defaulting to GET? Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Adding a hook for pre-runtime setup (ticket #5685)

2007-10-08 Thread Andrew Durdin
On 10/4/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > I wanted to get a feel for people's opinions on using this approach to > guarantee that certain code is executed before a request is processed > (or the interactive shell is loaded). > > This is necessary (arguably) to setup a listener to

Re: Adding a hook for pre-runtime setup (ticket #5685)

2007-10-08 Thread Andrew Durdin
gt; > I don't think we want to do this. Signals exist already for exactly this > purpose. Setting up a way to install functions prior to models being > imported but after settings are imported allows us to cover all cases > because you can install class_prepared handlers, as Andrew su

Re: Request exception handling and exception middleware

2007-10-15 Thread Andrew Durdin
imagine that (request, exc_class, exception, trace_back) would be more generally useful -- the last three parameters, naturally, being taken from the tuple returned by sys.exc_info(). Andrew. --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Discussion of #4131: addslashes, javascript string literals, and (new) escapejs

2007-10-18 Thread Andrew Durdin
t's due; The meat of the patch is Jeremy's, I just tidied it up a tad. Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djang

#2539 - Namespacing template tags and libraries

2007-10-21 Thread Andrew Durdin
Tick #2539 "Custom tags and filters can be restricted by namespace" was one of the ones I was going to pick up during the django sprint, but someone else beat me to it. However, the other day I noticed that the patch against it was old, and admitted to be incomplete by its author. Since namespac

Re: #2539 - Namespacing template tags and libraries

2007-10-22 Thread Andrew Durdin
On 10/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Selfishly I would like to be able to do: > {% load firstapp.library as mylib %} > {{ context_var|mylib.myfilter }} I don't think this would play nicely with the existing {% load library1 library2 %} syntax. A. --~--~-~--~

Should GenericForeignKey really implement m2m_*? (was Re: GenericRelation DROP generation problems)

2007-10-22 Thread Andrew Durdin
On 10/19/07, jdietrich <[EMAIL PROTECTED]> wrote: > > Can someone review the patch I've attached to ticket 3480 and verify > that it is sane? I think that should close out both #3480 and #3549, > and it seems a bit more kosher than the patch on #3549 It looks OK to me, rather along the lines of t

Re: #2539 - Namespacing template tags and libraries

2007-10-23 Thread Andrew Durdin
On 10/23/07, Bruce Kroeze <[EMAIL PROTECTED]> wrote: > Why couldn't both coexist, but be mutually exclusive? > > {% load firstapp.library as mylib %} > {% load thislib thatlib theotherlib %} They could; it would certainly be convenient, and a simple change to implement, but at the expense of a s

Re: Calling All Django Developers !

2007-10-23 Thread Andrew Durdin
On 10/23/07, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > > Siliconbits skrev: > > We are currently looking for Django developers to join us on a > > freelance basis. Please take this discussion to the django-users list. The django-developers list is for discussion of the development of django its

Newforms proxy serialization problem

2007-11-01 Thread andrew gleave
Hi everyone, I'm posting this here as every ticket I try to submit fails with a "500 Internal Server Error (Submission rejected as potential spam" message. After or around r6625 a bug has been introduced whereby when a newforms error dict is serialized with any serializer (I've tried simplejson a

Re: Newforms proxy serialization problem

2007-11-03 Thread andrew gleave
sender = forms.EmailField() cc_myself = forms.BooleanField(required=False) form = ContactForm({'subject': '', 'sender': 'invalid_address'}) form.is_valid() json = simplejson.dumps(form.errors) #this should work On Nov 1, 9:14 pm, andrew gleave <[

Re: Newforms proxy serialization problem

2007-11-03 Thread andrew gleave
Thanks Karen, I'll try that now. On Nov 3, 2:29 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 11/3/07, andrew gleave <[EMAIL PROTECTED]> wrote: > > > > > I've added some sample code which illustrates the problem. Still > > can'

floating point django.VERSION element versus adding another element to the tuple

2008-04-18 Thread Andrew D. Ball
ue something like (0, 96, 1) for (major_version, minor_version, patch_level) or something like that (probably with a better name than patch_level, I don't know exactly what the Django semantics are for the different parts of the versio number). Any thoughts? Peace, Andrew -- ==

<    2   3   4   5   6   7