https://github.com/pauloxnet/djangoqueries
The code of "Making queries" in docs.djangoproject.com that I used in my article "Full-Text Search in Django with PostgreSQL".
https://github.com/pauloxnet/djangoqueries
django full-text-search postgresql python
Last synced: 21 days ago
JSON representation
The code of "Making queries" in docs.djangoproject.com that I used in my article "Full-Text Search in Django with PostgreSQL".
- Host: GitHub
- URL: https://github.com/pauloxnet/djangoqueries
- Owner: pauloxnet
- License: bsd-3-clause
- Created: 2017-10-10T07:13:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-27T15:56:12.000Z (6 months ago)
- Last Synced: 2025-06-22T18:02:56.496Z (21 days ago)
- Topics: django, full-text-search, postgresql, python
- Language: Python
- Homepage: https://www.paulox.net
- Size: 360 KB
- Stars: 42
- Watchers: 3
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🦄️ Django Queries
[](https://github.com/astral-sh/ruff)

[](https://fosstodon.org/@paulox)Source code used in my article ["Full-Text Search in Django with PostgreSQL"](https://www.paulox.net/2017/12/22/full-text-search-in-django-with-postgresql) based on the blog application defined in the Django documentation topic ["Making queries"](https://docs.djangoproject.com/en/stable/topics/db/queries/).
## 📖 Documentation
### 🗃️ Database
Creating the `djangoqueries` database in your local PostgreSQL instance:
```shell
$ createdb -U postgres -O postgres djangoqueries
```### ⚗️ Virtualenv
Creating and activating the virtual environment:
```shell
$ python3 -m venv .venv
$ source .venv/bin/activate
```### 🧩 Requirements
Installing 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:
```shell
$ python -m pip install -r requirements.txt
```### ⬆️ Migrate
Migrating the `djangoqueries` database to create all required tables:
```shell
$ python -m manage migrate
```### 🔬 Tests
Running the defined tests:
```shell
$ python -m manage test
```### 📊 Data
Populating the `djangoqueries` database with demo data for the blog app:
```shell
$ python -m manage loaddata blog/fixtures/blog.json
```## ⚖️ License
**Django Queries** is licensed under the [BSD 3-Clause License](https://github.com/pauloxnet/djangoqueries/blob/master/LICENSE.md).
## 👥 Authors
### 👤 Paolo Melchiorre
- 🌍 Blog: [www.paulox.net](https://www.paulox.net)
- 🐙 Github: [github.com/pauloxnet](https://github.com/pauloxnet)
- 🦣 Mastodon: [fosstodon.org/@paulox](https://fosstodon.org/@paulox)
- 👔 LinkedIn: [linkedin.com/in/paolomelchiorre/](https://www.linkedin.com/in/paolomelchiorre/)