Registering models with django-watson
See original GitHub issueI dont understand where i need to add this thanks to help me
from django.apps import AppConfig
import watson
class YourAppConfig(AppConfig):
name = "your_app"
def ready(self):
YourModel = self.get_model("YourModel")
watson.register(YourModel)
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
This is why you should use Django-Watson
After installing watson, you need to do register the models you want to be searchable using watson. To do this open the apps.py...
Read more >django-watson - PyPI
django -watson is a fast multi-model full-text search plugin for Django. It is easy to install and use, and provides high quality search...
Read more >Model registration that uses a django.contrib.sites.models.Site ...
I'm having a problem when trying to use a Site object (from django.contrib.sites) in one of my Watson model registrations. The problem line...
Read more >django-watson does not work properly - Stack Overflow
CharField(_('title'), max_length=255) content = models.TextField(_('content')). Registration: from django.apps import AppConfig from watson ...
Read more >django-watson - Bountysource
0001_initial...System check identified some issues: app_1 | app_1 | WARNINGS: app_1 | watson.SearchEntry: (models.W042) Auto-created primary key used when not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried the master branch and it did not work. I still go the same problem.
Furthermore, maybe it would be nice to include the init.py thing in the documentation. I don’t think it is there.
Oh. I that’s true. I’ll update it 😃
Den mandag den 22. februar 2016 skrev Dave Hall notifications@github.com: