Skip to content

pauloxnet/djangoqueries

Repository files navigation

🦄️ Django Queries

Code style: black 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 required python packages in the djangoqueries virtual environments:

$ python3 -m pip install -r requirements/local.txt

⬆️ Migrate

Migrating the djangoqueries database to create all required tables:

$ python3 -m manage migrate

🔬 Tests

Running the defined tests:

$ python3 -m manage test

📊 Data

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

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

⚖️ License

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

👥 Authors

👤 Paolo Melchiorre

About

The code of "Making queries" in docs.djangoproject.com that I used in my article "Full-Text Search in Django with PostgreSQL".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published