Re: Serving static files with Channels

2017-05-12 Thread Andrew Godwin
Then I'm afraid you're stuck for now - you are welcome to open an issue against the Channels project to fix it and even write a patch if you want, but as DEBUG isn't turned on for production installs, it'll be considered a little lower priority. Andrew On Fri, May 12, 2017 at 1:17 PM, Alexander P

Re: Serving static files with Channels

2017-05-12 Thread Alexander Prokhorov
Yes, that is obvious, forgot to mention this. I would be happy to get rid of staticfiles completely, but several Django apps we use depend on it. Namely "debug_toolbar" and "django_rest_framework". I suppose staticfiles declares some keywords for templates those apps use. пятница, 12 мая 2017

Re: Serving static files with Channels

2017-05-12 Thread Andrew Godwin
Have you tried removing the staticfiles app from INSTALLED_APPS? I believe that will disable it even with runworker. Andrew On Fri, May 12, 2017 at 11:14 AM, Alexander Prokhorov wrote: > Dear Colleagues, in particular Andrew ;) > > I have a problem with making Channels serve static files. The

Re: Review of DEP 201 - simplified routing syntax

2017-05-12 Thread Aymeric Augustin
> On 12 May 2017, at 19:05, Marten Kenbeek wrote: > > That's not quite right. Django has actually been using the `re.UNICODE` flag > since at least 1.0, so you'd have the same problem on Python 2. Since 1.0 exactly; this behavior was introduced in https://github.com/django/django/commit/8c85d

Serving static files with Channels

2017-05-12 Thread Alexander Prokhorov
Dear Colleagues, in particular Andrew ;) I have a problem with making Channels serve static files. The issue concerns running `./manage.py runworker` which (according to the Getting Started with Channels guide) serves static files if Django run in DEBUG mode. Actually, I would like to disable

Re: Need to set socket options, for no breaking after a timeout

2017-05-12 Thread Andrew Godwin
Hi Victor, Socket handling for the TCP sockets is done by Twisted inside its TCP core, so you would have to look there to see what sort of options they set when opening a HTTP/WS connection handler. I personally have not seen too many issues with WebSocket timeouts, presumably as Daphne implements

Need to set socket options, for no breaking after a timeout

2017-05-12 Thread Victor Porton
About https://github.com/django/channels In the past I dealt with another Python WebSocket engine (unrelated to Django). The connection was breaking after a timeout. I solved this problem adding: sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.setsockopt(socket.SOL_TCP, socket.

Re: Review of DEP 201 - simplified routing syntax

2017-05-12 Thread Marten Kenbeek
On Friday, May 12, 2017 at 6:43:34 PM UTC+2, Florian Apolloner wrote: > > > > On Friday, May 12, 2017 at 12:33:28 PM UTC+2, Aymeric Augustin wrote: >> >> Django's URL resolver matches URLs as str (Unicode strings), not bytes, >> after percent and UTF-8 decoding. As a consequence \d matches any >>

Re: Review of DEP 201 - simplified routing syntax

2017-05-12 Thread Florian Apolloner
On Friday, May 12, 2017 at 12:33:28 PM UTC+2, Aymeric Augustin wrote: > > Django's URL resolver matches URLs as str (Unicode strings), not bytes, > after percent and UTF-8 decoding. As a consequence \d matches any > character in Unicode character category Nd >

Re: Review of DEP 201 - simplified routing syntax

2017-05-12 Thread Aymeric Augustin
After getting approval from Tom on IRC, I updated the DEP according to my email below: https://github.com/django/deps/pull/41 The next steps are: - account for any remaining feedback (I feel I made only minor changes compared to the last version, hopefu

Review of DEP 201 - simplified routing syntax

2017-05-12 Thread Aymeric Augustin
Hello, I reviewed the current version of DEP 201 as well as related discussions

Re: Proposal: provide postgresql powered full-text search in djangoproject.com

2017-05-12 Thread Aymeric Augustin
> On 7 May 2017, at 11:32, Curtis Maloney wrote: > > Dogfooding is a fairly strong argument, IMHO. > > Especially when there's a volunteer to do the work. > > -- > C I agree. I was mildly concerned about the effect on relevance, but the current search isn't all that good. A quick test shows

Re: Proposal: provide postgresql powered full-text search in djangoproject.com

2017-05-12 Thread Curtis Maloney
Dogfooding is a fairly strong argument, IMHO. Especially when there's a volunteer to do the work. -- C On 7 May 2017 6:53:13 PM AEST, Paolo Melchiorre wrote: >On Sun, May 7, 2017 at 9:16 AM, Florian Apolloner > wrote: >> On Sunday, May 7, 2017 at 12:50:02 AM UTC+2, Paolo Melchiorre wrote: >>> >