Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvarrazzo/django-psycopg3-backend
A Django backed for PostgreSQL using Psycopg 3
https://github.com/dvarrazzo/django-psycopg3-backend
Last synced: 11 days ago
JSON representation
A Django backed for PostgreSQL using Psycopg 3
- Host: GitHub
- URL: https://github.com/dvarrazzo/django-psycopg3-backend
- Owner: dvarrazzo
- License: bsd-3-clause
- Created: 2021-07-26T02:09:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T07:14:51.000Z (over 2 years ago)
- Last Synced: 2024-10-26T06:33:48.232Z (14 days ago)
- Language: Python
- Size: 36.1 KB
- Stars: 45
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
A Django backend for PostgreSQL using Psycopg > 2
=================================================The backend passes the entire Django test suite, but it needs a few
modifications to Django and to its test suite. These changes will be proposed
to the Django project in a series of merge requests. `A writeup`__ explains
the changes in more details... __: https://www.psycopg.org/articles/2021/08/02/psycopg3-django-driver/
The modifications required (targeting the main branch at the time of writing)
are available in the `psycopg3-4.1`__ Django branch. This is `the list of
changes`__... __: https://github.com/dvarrazzo/django/tree/psycopg3-4.1
.. __: https://github.com/django/django/compare/8b020f2e64...dvarrazzo:psycopg3-4.1Approximative instructions
--------------------------Create and activate a virtualenv any way you like::
python3 -m venv .venv
source .venv/bin/activateInstall Django, from a branch supporting Psycopg 3. Clone the repos to get the
test suite too. Example::git clone -b psycopg3-4.1 https://github.com/dvarrazzo/django.git
pip install -e ./djangoInstall Psycopg 3 from the master branch::
git clone https://github.com/psycopg/psycopg.git
pip install -e ./psycopg/psycopgInstall the backend (this project)::
pip install -e .
Customise the test config module if necessary::
vim configs/test_psycopg3.py
# hack hack
# :wqRun the django test suite::
python django/tests/runtests.py --settings=configs.test_psycopg3 -v2 --parallel=1 --noinput
A ``configs.test_psycopg2`` module is also available to run the same tests
with psycopg2 and check for regressions.