Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for psycopg3 #1814

Merged
merged 1 commit into from
May 15, 2023
Merged

Add support for psycopg3 #1814

merged 1 commit into from
May 15, 2023

Conversation

Apreche
Copy link
Contributor

@Apreche Apreche commented May 2, 2023

Django now supports psycopg3. The reset_db and drop_test_database management commands both make calls directly to psycopg2. This means they will not work in a Django project based on psycopg3.

I've never worked on the django-extensions codebase before, so I imagine there is a lot that is wrong with this very simple and straightforward patch attempt. Nonetheless, something is better than nothing. My hope is that even a rejected PR will help this issue get resolved more quickly.

closes #1811

@awbacker
Copy link

awbacker commented May 11, 2023

Really hoping this gets merged soon and I don't have to fork :-/

@lvieirajr
Copy link

+1 This is a pretty big one for Django 4.2 and psycopg3. Haven't been able to update my projects cause I rely pretty heavily on django-extensions.

@jannh
Copy link
Contributor

jannh commented May 13, 2023

+1 this is a big leap for the entire project I think!

@trbs trbs merged commit bc43793 into django-extensions:main May 15, 2023
24 checks passed
@trbs
Copy link
Member

trbs commented May 15, 2023

Thanks !

@trbs
Copy link
Member

trbs commented May 15, 2023

Now take find time to make another release 😃

@jannh
Copy link
Contributor

jannh commented May 15, 2023

Just tested with the current main and the drop_test_database command still fails - See #1818
Maybe this can be merged before a new release?

ryanchen99 added a commit to ryanchen99/django-extensions that referenced this pull request May 17, 2023
@Apreche
Copy link
Contributor Author

Apreche commented May 18, 2023

This got merged as-is? Wow. I didn't test it very much. Hoping someone besides me tested it before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drop_test_database not compatible with psycopg3
5 participants