These are chat archives for mirumee/saleor

11th
Oct 2018
M Abdullah Abid
@wulaaf
Oct 11 2018 13:26
Hi guys
The Docker Deployment guide says that I should install docker and then build. THAT'S IT?
That's not enough information
I have successfully install saleor through docker on my local machine
Now I want to move to production. Can someone please guide me on what I need to do in order to move to production?
Like what about the webserver? We can't use runserver in production? Will be use the normal apache2 way to linking up a django app to apache2?
M Abdullah Abid
@wulaaf
Oct 11 2018 13:49
What settings would I need to change in docker-compose.yml to make it production-ready?
victor felder
@vhf
Oct 11 2018 14:25
I'm getting a weird error on the order page… Anybody has had this before?
  File "/usr/local/lib/python3.6/site-packages/django/template/base.py", line 858, in _resolve_lookup
    current = current()
  File "./saleor/order/models.py", line 350, in get_event_display
    return display_order_event(self)
  File "./saleor/order/__init__.py", line 135, in display_order_event
    amount=params['amount'], currency=settings.DEFAULT_CURRENCY)
  File "/usr/local/lib/python3.6/site-packages/prices/money.py", line 23, in __init__
    self.amount = Decimal(amount)
TypeError: conversion from dict to Decimal is not supported
Default currency is set to CHF and displays correctly in the dashboard and storefront…
Filip Kucharczyk
@Pacu2
Oct 11 2018 16:11
I think Money instance is now serialized as dict, and this function was not adjusted properly
I think you should change amount=params['amount'], currency=settings.DEFAULT_CURRENCY to amount=params['amount']['amount'], currency=params['amount']['currency']
according to changes introduced in https://github.com/mirumee/saleor/pull/2827/files
victor felder
@vhf
Oct 11 2018 16:19
@Pacu2 Thanks, I checked and my project is at a later state than this commit so this PR is already in my project…
I'll sync with master and try again though.
Jermaine Maragh
@maragh
Oct 11 2018 22:21
Hi everyone, am using graphql to query some orders, but keep getting "I don't have permission". Am superuser with all permissions set.
resolve order: """Return order only for user assigned to it or proper staff user."""