Source code used in my article "Full-Text Search in Django with PostgreSQL" based on the blog application defined in the Django documentation topic "Making queries".
Creating the djangoqueries database in your local PostgreSQL instance:
$ createdb -U postgres -O postgres djangoqueriesCreating and activating the virtual environment:
$ python3 -m venv .venv
$ source .venv/bin/activateInstalling the latest version of django (tested from version 1.11 to 5.1) and psycopg (tested from version 2.7 to 3.2) using the requirements file:
$ python -m pip install -r requirements.txtMigrating the djangoqueries database to create all required tables:
$ python -m manage migrateRunning the defined tests:
$ python -m manage testPopulating the djangoqueries database with demo data for the blog app:
$ python -m manage loaddata blog/fixtures/blog.jsonDjango Queries is licensed under the BSD 3-Clause License.
- 🌍 Blog: www.paulox.net
- 🐙 Github: github.com/pauloxnet
- 🦣 Mastodon: fosstodon.org/@paulox
- 👔 LinkedIn: linkedin.com/in/paolomelchiorre/