manage.py command for populating recommended products
See original GitHub issueWrite a manage.py
command that populates the product recommendation models
based on the data within order history. Just follow the rules for “customers who
bought x, bought y”
Create a service that takes in a basket, and returns the a set of recommended products
Issue Analytics
- State:
- Created 12 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
django-admin and manage.py — Django 4.1.4 documentation
Run django-admin help to display usage information and a list of the commands provided by each application. Run django-admin help --commands to display...
Read more >Django 2.0 Populating Database with a Script - Stack Overflow
The fast way to work it out is to populate your DB from Django shell ( python manage.py shell ). Your code without...
Read more >Populating the Database with Fake Data - The Django Admin ...
Learn to populate your Django database with fake data so that you can play ... For populating the data you have the createFakeData.py...
Read more >How to create custom commands in django - Lewis Kori
To register a custom admin command, add a management\commands directory in your django app folder. In our case, it's going to be in...
Read more >Customize the Django Admin With Python
In this tutorial, you'll learn how to customize Django's admin with Python. You'll use AdminModel objects to add display columns, calculate values, link...
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
For anyone reading this, I ended up using elastic’s “more like this” functionality to dynamically generate recommended products. The overall fidelity of recommendations might be less than manually specified products, but the dramatic reduction in data entry burden was considered a reasonable trade off for my application.
I believe within just simple lookup in the order history we can’t get relevant products, because customers often buy unrelated products in the same order.
To get list of similar products, we’ll have to design quite more complex algorithm, which is potential topic for the new issue we’d create once we get to implement this.