Registry / web-framework / django-watson

django-watson

JSON →
library1.6.3pypypi✓ verified 81d ago

Full-text multi-table search application for Django. Easy to install and use, with good performance. Current version 1.6.3. Released irregularly, last release Dec 2023.

pip install django-watson
INSTALL
IMPORT
SIG · DJANGO-WATSON
D
django-watson
web-frameworkpythonv1.6.3
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.6.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VERSION
from watson import VERSION
from watson import search as watson

Register model with watson and run a search.

import watson from myapp.models import Article # Register models for search watson.register(Article) # Perform a search results = watson.search("query")
Debug
Known issues
breakingdjango-watson 1.6.x dropped support for Django < 3.2 and Python < 3.7. Ensure your environment meets these requirements before upgrading.
fix
Upgrade Django to 3.2+ and Python to 3.7+
affects: >=1.6.0
deprecatedThe `SearchContextManager` class is deprecated in favor of direct `SearchContext` usage.
fix
Replace `SearchContextManager` with `SearchContext` in your code.
affects: >=1.6.0
gotchawatson.register() must be called after all model definitions (usually at the bottom of models.py or in AppConfig.ready()). Calling it too early may cause missing models.
fix
Place registration calls in the AppConfig.ready() method of your app.
affects: all
Upgrade
Version history
1.6.3latest on PyPI · released Jan 14, 2023
Audit
Dependencies
DjangorequiredCore framework requirement
Agent activity
10 hits · last 30 days
node
10
Resources
django-watson — pip install django-watson · libregistry