question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Django 2.2 and PostgreSQL 11

See original GitHub issue

First thanks for this project!

It’d be great to see if the warnings/errors scheme on unsafe operation is something that could be integrated to Django’s core.

I just wanted to give you a small heads up that the DatabaseSchemaEditor schema editor will change a bit in Django 2.2 to allow for check and unique constraint additions through the Meta.constraints API. Most of the details are in https://github.com/django/django/pull/10406

Also PostgreSQL 11 allows non locking NOT NULL column addition so it’d be great to adjust the documentation in consequence and use pg_version detection to avoid raising an exception/warning when not necessary.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
charettescommented, Apr 1, 2019

Thanks for all your hardwork, @tbicr!

1reaction
charettescommented, Oct 23, 2018

Ahh you’re right about the weird way Django deals with database level defaults. This is already tracked in https://code.djangoproject.com/ticket/470 which you might want to CC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

End of life dates for supported database versions
For example, Django 2.1 supports Python 3.5 and later, so the minimum supported SQLite version is 3.8.11. Search the ​Python Changelog for "SQLite"...
Read more >
Does Django 2.2 LTS supports Postgresql 11 ? - Google Groups
The release-notes say Postgresql 9.4 or higher is supported, but Postgresql 11 had been released only 6 months before Django 2.2, ...
Read more >
How to use PostgreSQL with Django - EDB
This article covers how to use PostgreSQL together with the Python web application framework Django. After walking through the Django ...
Read more >
Databases — Django 4.1.4 documentation
Django supports PostgreSQL 11 and higher. psycopg2 2.8.4 or higher is required, though the latest release is recommended. PostgreSQL connection ...
Read more >
How to use Django 2.2 with legacy PostgreSQL 8.4 database?
I think what you can do is to: dump your information in the database to a separate file; uninstall and upgrade your postgres...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found