These are chat archives for mirumee/saleor

18th
Jul 2018
Marcin Gębala
@maarcingebala
Jul 18 2018 08:55
Hey @piotrszyma, have you tried to set it up from master branch? We've been doing a lot of changes to our Docker configuration recently. I'd try that and see if the recent configurations works for you.
I'd recommend removing all containers and recreating them again with this new configuration.
maltitco
@maltitco
Jul 18 2018 14:06
How do you translate product names and descriptions into other languages?
Filip Kucharczyk
@Pacu2
Jul 18 2018 14:08

It's not ready yet, however they were two attemps of the implementation,
First attempt was using django-modeltranslation, but as we would rather avoid meta classes magic it's not going to be merged at this moment
https://github.com/mirumee/saleor/pull/2307/files
(According to the author it should work out of the box, this PR is relatively new but haven't got a chance to test it on my own)

Another one was involving our custom translation interface (will be finished at some point in the future, at this moment there's an outdated PR)
mirumee/saleor#819

maltitco
@maltitco
Jul 18 2018 14:14
It only remains to wait
which way the team will go
piotrszyma
@piotrszyma
Jul 18 2018 17:29
@elwoodxblues tried from master, way to reproduce:
4252 sudo service docker start 4253 docker ps 4254 git clone https://github.com/mirumee/saleor 4255 gst 4256 cd saleor 4257 gst 4258 ggl 4259 history 4260 docker-compose build 4261 docker-compose run web python3 manage.py migrate 4262 docker-compose run web python3 manage.py collectstatic
FileNotFoundError: [Errno 2] No such file or directory: '/app/saleor/static/assets'
up till static collection everything seems fine
4252  sudo service docker start
4254  git clone https://github.com/mirumee/saleor
4256  cd saleor
4260  docker-compose build
4261  docker-compose run web python3 manage.py migrate
4262  docker-compose run web python3 manage.py collectstatic
Starting saleor_db_1 ... 

Starting saleor_redis_1 ... done
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 189, in handle
    collected = self.collect()
  File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 105, in collect
    for path, storage in finder.list(self.ignore_patterns):
  File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/finders.py", line 125, in list
    for path in utils.get_files(storage, ignore_patterns):
  File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py", line 28, in get_files
    directories, files = storage.listdir(location)
  File "/usr/local/lib/python3.6/site-packages/django/core/files/storage.py", line 313, in listdir
    for entry in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: '/app/saleor/static/assets'
Marcin Gębala
@maarcingebala
Jul 18 2018 19:07
Hmm, I'm not sure what might be the issue here. One workaround that comes to mind is to start Django server locally and use docker only for database and Celery
so
docker-compose up -d db celery redis
I guess you can start from step 3., skip the database creation (as you have it in docker container) and move on to step 7.