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 djangoqueries
Creating and activating the djangoqueries
virtual environments.
$ mkdir -p ~/.virtualenvs
$ python3 -m venv ~/.virtualenvs/djangoqueries
$ source ~/.virtualenvs/djangoqueries/bin/activate
Installing the required python packages in the djangoqueries
virtual environments.
(djangoqueries) $ pip install -r requirements/dev.txt
Migrating the djangoqueries
database to create all required tables.
(djangoqueries) $ python manage.py migrate
Running the defined tests.
(djangoqueries) $ python manage.py test
Populating the djangoqueries
database with demo data for the blog app.
(djangoqueries) $ python manage.py populate
Django Queries is licensed under the BSD 3-Clause License
Django Queries is designed, authored, reviewed and tested by: