pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Daniele Varrazzo <daniele.varrazzo@gmail.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Recomended front ends?
Date: Tue, 27 Aug 2019 08:16:08 -0700
Message-ID: <a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com> (raw)
In-Reply-To: <CA+mi_8ZZPY4v8ic_XEOdQiT7V48A8hOvaW1cPEB5b6+icTTnrQ@mail.gmail.com>
References: <20190807185708.GA19765@panix.com>
	<CA+FnnTzfHoYOGX8c-SL6Aic6W6t+8ro5HPFQ_x=LFbkLfFa5Tg@mail.gmail.com>
	<alpine.LNX.2.20.1908071335060.12111@salmo.appl-ecosys.com>
	<2e05945f-eaa9-2034-97b2-605e7fdb6746@mtneva.com>
	<alpine.LNX.2.20.1908081030570.9087@salmo.appl-ecosys.com>
	<3cc9f7ab-2bb8-22c4-5995-63ebcb547240@aklaver.com>
	<alpine.LNX.2.20.1908081044410.9087@salmo.appl-ecosys.com>
	<20190811184907.GC18277@hjp.at>
	<CA+mi_8ZZPY4v8ic_XEOdQiT7V48A8hOvaW1cPEB5b6+icTTnrQ@mail.gmail.com>

On 8/27/19 8:04 AM, Daniele Varrazzo wrote:
> On Sun, Aug 11, 2019 at 7:49 PM Peter J. Holzer <hjp-pgsql@hjp.at> wrote:
> 
>> Django lets you use "unmanaged" tables, but it is quite noticeable that
>> this isn't the primary use case.
> 
> It isn't, but it's the best way to use Django for database-literate
> people. It's enough to ignore the Django sale pitch of the database as
> a replaceable element and just assume Postgres. In Docker times you
> don't need SQLite to create a poorly representative "development
> database".

Django takes Postgres as it's reference database which makes things 
easier, especially when you add in 
contrib.postgres(https://docs.djangoproject.com/en/2.2/ref/contrib/postgres/)


> 
> You can just ignore the Django ORM for the whole data-definition layer
> and migrations: you can have your database schema, with comments, in
> your source code, with strict control of what's in the db (exotic
> index definitions, exclusion constraints, writable views...) and only
> use the ORM to read and manipulate data, as long as the Django model
> "resembles" the database table.
> Schema migrations are easy to deal with using SQL patches [1], and
> complete, unlike any Model-based migration system.

+1

> 
> Using the Django ORM to create complex queries is a joy (especially
> nesting subqueries), and you don't lose all the other Django
> facilities (decent auth model, decent CRUD interface, customisation
> when "decent" is not enough).
> 
> [1] https://gist.github.com/dvarrazzo/4161070
> 
> -- Daniele
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (24+ messages)  latest in thread

Message-ID: <a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com>
Permalink:  ../a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com/
Also on:    postgresql.org/message-id/a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, daniele.varrazzo@gmail.com, hjp-pgsql@hjp.at
  Subject: Re: Recomended front ends?
  In-Reply-To: <a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com>
  References: <20190807185708.GA19765@panix.com> <CA+FnnTzfHoYOGX8c-SL6Aic6W6t+8ro5HPFQ_x=LFbkLfFa5Tg@mail.gmail.com> <alpine.LNX.2.20.1908071335060.12111@salmo.appl-ecosys.com> <2e05945f-eaa9-2034-97b2-605e7fdb6746@mtneva.com> <alpine.LNX.2.20.1908081030570.9087@salmo.appl-ecosys.com> <3cc9f7ab-2bb8-22c4-5995-63ebcb547240@aklaver.com> <alpine.LNX.2.20.1908081044410.9087@salmo.appl-ecosys.com> <20190811184907.GC18277@hjp.at> <CA+mi_8ZZPY4v8ic_XEOdQiT7V48A8hOvaW1cPEB5b6+icTTnrQ@mail.gmail.com> <a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox