Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.99 KB

README.md

File metadata and controls

71 lines (45 loc) · 1.99 KB

🦄️ Django Queries

Code style: ruff Coverage Mastodon Follow

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".

📖 Documentation

🗃️ Database

Creating the djangoqueries database in your local PostgreSQL instance:

$ createdb -U postgres -O postgres djangoqueries

⚗️ Virtualenv

Creating and activating the virtual environment:

$ 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:

$ python -m pip install -r requirements.txt

⬆️ Migrate

Migrating the djangoqueries database to create all required tables:

$ python -m manage migrate

🔬 Tests

Running the defined tests:

$ python -m manage test

📊 Data

Populating the djangoqueries database with demo data for the blog app:

$ python -m manage loaddata blog/fixtures/blog.json

⚖️ License

Django Queries is licensed under the BSD 3-Clause License.

👥 Authors

👤 Paolo Melchiorre