Re: Making Django more PaaS-friendly

2016-04-13 Thread aRkadeFR
I like the try to move things towards this kind of settings more PaaS-friendly. As a Django user, I'd like to see 'DSN' or 'URL' for the database as a built-in in Django. I don't mind setting it in the dict as so: ``` DATABASES = { 'default': { 'DSN': 'postgres://user:password@ip:p

Re: Django startproject template enhancement proposal

2016-03-14 Thread aRkadeFR
FMPOV, the default template from Django influences: - the use of settings in .py files over the environment variables; - the use of manage.py over django-admin command; - the merge of the "core application" and the project (settings/wsgi...) in one django app; This is very personal and based on

Re: Place on a server

2015-03-05 Thread aRkadeFR
On 03/05/2015 11:47 AM, Erik Romijn wrote: Hello, The best place to get answers to your questions is the django-users email list, > - the web interface is

Re: A general way to batch SQL queries in Django

2015-02-27 Thread aRkadeFR
What do you mean by a single roundtrip? You can do multiple queries in a single transaction (thus in a single connection to the DB). By default (correct me if I'm wrong) with PG for example, it does all the queries in a single transaction while being in a request. On 02/27/2015 03:18 PM, Ram

Re: Testing email settings

2015-02-27 Thread aRkadeFR
Hello, I've written couple of time similar command for my project too. But if I take a step back, these commands (for my projects) are only here to test that my SMTP settings are well setup. Thus, the test sending email is quite unnecessary, I would like a check that connects to the SMTP server

Re: Drop the TEMPLATE_DEBUG setting

2015-02-16 Thread aRkadeFR
+1, Thanks, On 02/15/2015 03:15 PM, Aymeric Augustin wrote: Hello, During the multiple template engines refactor, I didn’t touch TEMPLATE_DEBUG. The only purpose of this setting is to control whether Django stores the information required to display stack traces for exceptions that occur wh

Re: automated import sorting and better pull request checks

2015-01-30 Thread aRkadeFR
I support the idea of introducing isort. Didn't know isort before and give it a try on personal project. It considers only the global import of the file (I mean on the very top on my files and not in the methods / functions). Which is exactly what it should do from my point of view. On 01/29/201

Re: Multiple template engines for Django - retrospective

2015-01-29 Thread aRkadeFR
Good series of post, and great work. Thank you On 01/25/2015 11:29 PM, Aymeric Augustin wrote: Hello, Here’s the final weekly update for this project: https://myks.org/en/multiple-template-engines-for-django/#2015-01-25 Huge thanks for everyone who helped me along the way! -- You received t

Re: Information on construction of object on form (philosophy)

2014-11-18 Thread aRkadeFR
create the fields on the form dynamically based on what keys are present in your data, or dynamically remove the non-existent fields from form.fields in __init__ once you have the data. Collin On Tuesday, November 18, 2014 12:21:38 PM UTC-5, aRkadeFR wrote: Hello ever

Information on construction of object on form (philosophy)

2014-11-18 Thread aRkadeFR
Hello everyone, Sorry to bother cause I did a ticket and got an answer by Tim Graham. https://code.djangoproject.com/ticket/23760 But I wonder what's the philosophy of the Django developers community on this ticket. If Tim Graham want to be more explicit here, I would be really happy to read f