Re: Supporting a template database for test db

2017-03-22 Thread Melvyn Sopacua
On Wednesday 22 March 2017 06:12:49 Tim Graham wrote: > This is already implemented in Django 1.11: > https://code.djangoproject.com/ticket/27061. Fantastic, thank you. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django developers

Re: delegating our static file serving

2017-03-22 Thread Florian Apolloner
I think there is no need to vendor nowadays, we can just depend on whitenoise. (like we do for pytz) On Wednesday, March 22, 2017 at 5:14:58 PM UTC+1, Aleksej Manaev wrote: > > Am I on the right track with the integration of WhiteNoise into Django? > Can Someone lead me to the next steps that

Re: delegating our static file serving

2017-03-22 Thread Aleksej Manaev
Am I on the right track with the integration of WhiteNoise into Django? Can Someone lead me to the next steps that need to be done? https://github.com/django/django/compare/master...AleksejManaev:ticket_27325?expand=1 I think "django/views/static.py" can't be deprecated because it is used for

Re: Typing Annotations to django core (PEP 484)

2017-03-22 Thread Tim Graham
Please search this mailing list's archives for past discussions, e.g. https://groups.google.com/d/topic/django-developers/trTEbURFhEY/discussion. On Wednesday, March 22, 2017 at 8:43:22 AM UTC-4, matthaus woolard wrote: > > > Django 2 will be for python 3.5+ this is the perfect time to start >

Re: Supporting a template database for test db

2017-03-22 Thread Tim Graham
This is already implemented in Django 1.11: https://code.djangoproject.com/ticket/27061. On Wednesday, March 22, 2017 at 6:53:11 AM UTC-4, Melvyn Sopacua wrote: > > Hi, > > > > I'm currently running into the problem that in order to run tests, I need > to grant my database user super-user

Re: Typing Annotations to django core (PEP 484)

2017-03-22 Thread Florian Apolloner
Hi, On Wednesday, March 22, 2017 at 1:43:22 PM UTC+1, matthaus woolard wrote: > > 1) makes the code easier to read > I disagree, they imo make the code harder to read, especially when the annotations are becoming a bit more complex. > Im not sure if there is any large performance hit from

Typing Annotations to django core (PEP 484)

2017-03-22 Thread matthaus woolard
Django 2 will be for python 3.5+ this is the perfect time to start adding Typing Annotations to django core. There is not need to add to the full code base at once, this is something that could be faced in as new apis are written and added to older apis and sages. In my view advantages of

Re: Supporting a template database for test db

2017-03-22 Thread Florian Apolloner
Sounds sensible to me. On Wednesday, March 22, 2017 at 11:53:11 AM UTC+1, Melvyn Sopacua wrote: > > Hi, > > > > I'm currently running into the problem that in order to run tests, I need > to grant my database user super-user privileges. > > No problem for dev, but I'd like to avoid that on any

Supporting a template database for test db

2017-03-22 Thread Melvyn Sopacua
Hi, I'm currently running into the problem that in order to run tests, I need to grant my database user super-user privileges. No problem for dev, but I'd like to avoid that on any system resembling production. This is a Postgresql specific issue, as there is no seperate privilege I can

Re: Django ORM query syntax enhancement

2017-03-22 Thread Asif Saifuddin
Hi Aric, I checked your package. it's nice too. thanks for the work. Asif On Monday, October 17, 2016 at 4:38:26 AM UTC+6, Aric Coady wrote: > > +1. I implemented much the same thing for part of django-model-values > , but went with F >