These are chat archives for mirumee/saleor

29th
Jan 2019
Ehsan
@ehsanveisi_gitlab
Jan 29 09:37
Is there any quick way to implement on the fly discount per users?
I basically want dynamic discounts. each check out will be different.
Ehsan
@ehsanveisi_gitlab
Jan 29 12:14
Or can on integrate it with a third party api somehow?
pakwesi
@pakwesi
Jan 29 14:10
Can you guys please provide us with simple tutorial how to set up saleor and deploy it?
Marcin Gębala
@maarcingebala
Jan 29 14:18
@pakwesi I believe Getting Started section in our docs has all neccesary info, do you have any particular problems?
Stephen Moloney
@stephenmoloney
Jan 29 18:29
Just wondering about where/how python manage.py populatedb hooks into saleor. Is there a generic way to override the default demo ?
I see ./core/management/commands/populatedb.py - perhaps just writing a custom file for this, maybe there can be a more generic way to do it.
Stephen Moloney
@stephenmoloney
Jan 29 18:36
I suppose targetting a replacement saleor-components/saleor/saleor/core/utils/random_data.py, saleor-components/saleor/saleor/static/db.json, saleor-components/saleor/saleor/static/placeholders files is a necessary starting point
Ray Besiga
@raybesiga
Jan 29 21:50
Hey @stephenmoloney I was dealing with this same issue yesterday and python manage.py populatedb was not too helpful with no demo data. I would say the best way to get around this is to run a command that enforces a properly serialized db.json file when you run dumpdata. Something like this python manage.py dumpdata --exclude auth.permission --exclude contenttypes --indent 2 > db.json and then running python manage.py loaddata db.json
Stephen Moloney
@stephenmoloney
Jan 29 21:53
@raybesiga that seems like a useful approach. You do this after you have added some products manually - right ?