These are chat archives for mirumee/saleor

12th
Mar 2019
Denis Dvornikov
@dennypenta
Mar 12 07:11
@ZeroCoolHacker I got it. There are templates preferly. Mostly used jQuery then React, so its got SEO well
Pete Dermott
@petedermott
Mar 12 11:56
@xtrasalty - sounds like you've run a database migration that has changed some tables, you can either restore from an older DB backup (hopefully you've got one!) or you'll have to complete the merge
@camiloruizi - you will need to set your SECRET_KEY as an environment variable, easiest way to do this is to type 'export SECRET_KEY="blahbah"' into the terminal where you start the runserver and see if that works.
xtrasalty
@xtrasalty
Mar 12 12:00
@petedermott Thanks Pete. I did not run any migrations, what i did do was drop the 2.4.0 files over top minus the settings file. I ran npm install, build-assets again(not sure if i was supposed to) and thats what I ended up with. I reverted back to my precious files(2.3.0 i believe) and it works fine. Im trying again today, just ran a git diff against my files and the saleor 2.4.0 tag, now just going to try and figure out a way to patch each individual file. Im trying to learn as I go and it has been a tough road
Pete Dermott
@petedermott
Mar 12 12:02
If you've added 2.4.0 files then you are possibly going to end up with additional migrations that would need to be run, try doing a ./manage.py showmigrations and make sure that everything is checked.
xtrasalty
@xtrasalty
Mar 12 12:04
@petedermott Ok that could be it. So is it normal to run migrations each time you update to a new release? I was trying today to just patch each file with git, but i guess migrations would be part of that
Pete Dermott
@petedermott
Mar 12 12:06
@xtrasalty Yes, the code will be expecting the database to be in a particular format so if you are missing tables then stuff is going to break, you should check what you are pulling in with the merge because there might be migrations that need to be run
@maarcingebala Is the checkout in the PWA complete at this point? I'm currently getting error messages that my shop isn't shipping to my delivery country when trying to use it.
xtrasalty
@xtrasalty
Mar 12 12:09
@petedermott Much appreciated, I will try to work thru it today and see what I can figure out. Thanks again!
Denis Dvornikov
@dennypenta
Mar 12 12:35
Guys, does anybody compared saleor and cms like opencart, magento, prestashop, woocommerce and so on?
Denis Dvornikov
@dennypenta
Mar 12 12:42
I’m looking for more easy way, but I’m catching self that it’s the same way, and the biggest benefit that I know python and don’t php.
xtrasalty
@xtrasalty
Mar 12 12:46
@petedermott I tried to merge the 2.4.0 branch and git is complaining that i need to move or remove existing files. Am I going about this the right way
Pete Dermott
@petedermott
Mar 12 12:47
@dennypenta I've used magento and woocommerce a few times. Saleor (to me at least) feels like its a bit of a different beast, it's built for customization and requires a bit more developer know-how to get it to do what you want, even just updating it isn't just a case of hitting a button in a CMS.
Denis Dvornikov
@dennypenta
Mar 12 12:48
@petedermott what do you think, is cms faster in the casual way?
Pete Dermott
@petedermott
Mar 12 12:48
@xtrasalty You are probably going to need to move or remove some stuff, yes. You should check the changelist or even the commits to see what is new.
Denis Dvornikov
@dennypenta
Mar 12 12:49
From saleor I just need to change design, payment and shipping policies, that’s it, the same with CMS.
xtrasalty
@xtrasalty
Mar 12 12:50
@petedermott Ok, that changelist is in github? It wants me to move out all static files too. Ill see what I can find, thanks
Denis Dvornikov
@dennypenta
Mar 12 12:51
But one detail - nobody has support for payment that I want to use, so I shall develop that payment in the CMS too.
Pete Dermott
@petedermott
Mar 12 12:52
@dennypenta Potentially, it depends on the level of customisation you want to do to it or if you are fussed about using the PWA or not. It depends on what you are selling, how many changes you want to make to the design, the difficulty in implementing your payment gateway, your experience with PHP vs Python / Django
I would write up a pros and cons list and weigh them up, it could save you a load of agro down the road.
Denis Dvornikov
@dennypenta
Mar 12 12:53
@petedermott it’s a good point, but I haven’t experience with php
@petedermott Why did you noticed PWA?
Pete Dermott
@petedermott
Mar 12 12:55
@dennypenta I've not used PHP properly in a while but it always used to seem more complicated than python and django and WordPress / WooCommerce is it's own beast altogether. Maybe try and get local versions of them all running and see how the core code feels to you.
xtrasalty
@xtrasalty
Mar 12 13:10
@petedermott Is git format-patch what I would use to add in the changes or must i move the old files and use merge? I feel like I am close
Pete Dermott
@petedermott
Mar 12 13:13
@xtrasalty Honestly, I don't know! I think merging would be the way that I would do it but I'm not totally au fait with git
Ashish Patil
@ashishnitinpatil
Mar 12 13:14
I second merging since future patching would be easier, as well as the diff / history would remain nicely preserved.
You could use meld diff tool to see all the changes being merged and then discard some before making the final merge commit.
xtrasalty
@xtrasalty
Mar 12 13:24
Thanks, I will check out meld. It just seems odd to me that i need to move out all the changed files but Im new to this
Yashaswi Maharshi
@mahayash
Mar 12 13:28
@all Can we used saleor as multi-vendor website kind of marketplace sort of ?
Pete Dermott
@petedermott
Mar 12 13:30
@mahayash Out of the box? No, I don't think so.