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