question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

manage.py command for populating recommended products

See original GitHub issue

Write 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:closed
  • Created 12 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
john-partoncommented, Feb 25, 2016

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.

0reactions
sasha0commented, May 8, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found