Re: A proposal for a new auto-reloader in Django

2017-04-02 Thread Carl Meyer
Hi David, I wouldn't bother with the wsgiwatcher repo; it's proof-of-concept code from one sprint's worth of hacking, not used by anyone. Look at hupper instead, it is based on wsgiwatcher, but much changed, and actually used in production. Carl On 04/02/2017 04:27 PM, qingnian...@gmail.com wrot

Re: A proposal for a new auto-reloader in Django

2017-04-02 Thread qingnian213
Hi Aymeric, I feel like using Watchman might be the easiest solution. It keeps triggering the command once an event occurs, so autoreload.py does not need to restart the server in case of a syntax error. Pywatchman does not work on Python 3 and has some dependency problems, so I'm planning to

Re: A proposal for a new auto-reloader in Django

2017-04-02 Thread qingnian213
Hi Carl, I don't quite understand why get_module_paths() in your wsgiwatcher project is returning a list of python module paths. I thought it would return the directory that needs to be monitored. Could you please tell me how this part works? Thanks. David Ma On Thursday, March 30, 2017 at 7

Re: Proposal: make Model __unicode__() default to self.name

2017-04-02 Thread Collin Anderson
Makes sense to me. Maybe still keep the "Transaction object" part, and use None if no pk. On Sun, Apr 2, 2017 at 11:09 AM, Kapil Garg wrote: > Ticket 27953 is regarding > this proposal and the suggestion is about adding "pk" in Model string > represe

Vietnamese Django full text search in postgres.

2017-04-02 Thread Cử Nhữ Văn
Hi Django developers! I'm newbie in django. I have a problem with Vietnamses full text search in postgres DB. Please help me! I have a website supported English and Vietnamese. When I search with English, everything ok. When I search with Vietnamese, I got problem: When i inputed "gia" it only re

Re: Proposal: make Model __unicode__() default to self.name

2017-04-02 Thread Kapil Garg
Ticket 27953 is regarding this proposal and the suggestion is about adding "pk" in Model string representation if it exists. On Thursday, 11 July 2013 09:16:25 UTC+5:30, Collin Anderson wrote: > > Hi All, > > Have you ever quickly set up a model, ra

Re: A proposal for a new auto-reloader in Django

2017-04-02 Thread Aymeric Augustin
Hello, On 1 Apr 2017, at 05:52, qingnian...@gmail.com wrote: > For the pure-Python solution, I might implement a standalone autoreloader > based on Carl's work and replace the current one. Does this look good to you? Perhaps. It depends on the details (features, installation requirements, cro