{"action":"created","issue":{"url":"https://api.github.com/repos/mirumee/saleor/issues/2299","repository_url":"https://api.github.com/repos/mirumee/saleor","labels_url":"https://api.github.com/repos/mirumee/saleor/issues/2299/labels{/name}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/2299/comments","events_url":"https://api.github.com/repos/mirumee/saleor/issues/2299/events","html_url":"https://github.com/mirumee/saleor/issues/2299","id":333997257,"node_id":"MDU6SXNzdWUzMzM5OTcyNTc=","number":2299,"title":"Problems installing: Django looks in python environment ","user":{"login":"RoelantStegmann","id":2260120,"node_id":"MDQ6VXNlcjIyNjAxMjA=","avatar_url":"https://avatars2.githubusercontent.com/u/2260120?v=4","gravatar_id":"","url":"https://api.github.com/users/RoelantStegmann","html_url":"https://github.com/RoelantStegmann","followers_url":"https://api.github.com/users/RoelantStegmann/followers","following_url":"https://api.github.com/users/RoelantStegmann/following{/other_user}","gists_url":"https://api.github.com/users/RoelantStegmann/gists{/gist_id}","starred_url":"https://api.github.com/users/RoelantStegmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoelantStegmann/subscriptions","organizations_url":"https://api.github.com/users/RoelantStegmann/orgs","repos_url":"https://api.github.com/users/RoelantStegmann/repos","events_url":"https://api.github.com/users/RoelantStegmann/events{/privacy}","received_events_url":"https://api.github.com/users/RoelantStegmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T09:32:53Z","updated_at":"2018-06-20T17:06:05Z","closed_at":null,"author_association":"NONE","body":"Trying to install saleor on a webfaction server, but I'm running into some problems. \r\n\r\n### Steps to reproduce the problem\r\n1.  When going to my website after collectstatic, it seems that django looks for the static files in the environment path\r\n\r\n```\r\n    The joined path (/images/placeholder255x255.png) is located outside of the base path component (/path/to/lib/python3.6/versatileimagefield/static)\r\n\r\n    20 | </ol>\r\n    -- | --\r\n    {% else %}\r\n    <p>{% trans \"None\" %}</p>\r\n    {% endif %}\r\n \r\n    <h4>{% blocktrans count staticfiles\\|length as staticfiles_count %}Static file{% plural %}Static files{%     endblocktrans %}</h4>\r\n    {% if staticfiles %}\r\n    <dl>\r\n    {% for staticfile in staticfiles %}\r\n    <dt><strong><a class=\"toggleTemplate\" href=\"{{ staticfile.url }}\">{{ staticfile }}</a></strong></dt>\r\n    <dd><samp>{{ staticfile.real_path }}</samp></dd>\r\n    {% endfor %}\r\n    </dl>\r\n    {% else %}\r\n    <p>{% trans \"None\" %}</p>\r\n    {% endif %}\r\n \r\n \r\n    {% for finder, payload in staticfiles_finders.items %}\r\n    <h4>{{ finder }} ({% blocktrans count payload\\|length as payload_count %}{{ payload_count }} file{%     plural %}{{ payload_count }} files{% endblocktrans %})</h4>\r\n    <table>`\r\n```\r\nMy settings are \r\n\r\n```\r\nMEDIA_ROOT = '/home/static/app/saleor/media'  # os.path.join(PROJECT_ROOT, 'media')\r\nMEDIA_URL = 'https://img.website.com/saleor/media/'\r\n\r\nSTATIC_ROOT = '/home/static/app/saleor/static' #os.path.join(PROJECT_ROOT, 'static')\r\nSTATIC_URL = 'https://img.website.com/saleor/static/'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mirumee/saleor/issues/comments/398825151","html_url":"https://github.com/mirumee/saleor/issues/2299#issuecomment-398825151","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/2299","id":398825151,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODgyNTE1MQ==","user":{"login":"NyanKiyoshi","id":6186720,"node_id":"MDQ6VXNlcjYxODY3MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/6186720?v=4","gravatar_id":"","url":"https://api.github.com/users/NyanKiyoshi","html_url":"https://github.com/NyanKiyoshi","followers_url":"https://api.github.com/users/NyanKiyoshi/followers","following_url":"https://api.github.com/users/NyanKiyoshi/following{/other_user}","gists_url":"https://api.github.com/users/NyanKiyoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/NyanKiyoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NyanKiyoshi/subscriptions","organizations_url":"https://api.github.com/users/NyanKiyoshi/orgs","repos_url":"https://api.github.com/users/NyanKiyoshi/repos","events_url":"https://api.github.com/users/NyanKiyoshi/events{/privacy}","received_events_url":"https://api.github.com/users/NyanKiyoshi/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T17:06:05Z","updated_at":"2018-06-20T17:06:05Z","author_association":"CONTRIBUTOR","body":"Hi!\r\n\r\nFor production use, you have to set up a static file serving. Django only serves static files on the development server.\r\n\r\nYou will need to add a static path to your web server config (nginx, Apache, ...):\r\n\r\n| path | target |\r\n|-|-|\r\n| `/static` | `/home/static/app/saleor/static/` |\r\n| `/media` | `/home/static/app/saleor/media/` |\r\n\r\nFor the media files (at least), the best would be to setup a S3 bucket to store and serve them."}}
{"actor":{"display_login":"NyanKiyoshi"}}