{"action":"created","issue":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/2648","repository_url":"https://api.github.com/repos/Pylons/pyramid","labels_url":"https://api.github.com/repos/Pylons/pyramid/issues/2648/labels{/name}","comments_url":"https://api.github.com/repos/Pylons/pyramid/issues/2648/comments","events_url":"https://api.github.com/repos/Pylons/pyramid/issues/2648/events","html_url":"https://github.com/Pylons/pyramid/issues/2648","id":160562089,"number":2648,"title":"Non working code in \"Quick Tour\" documentation: static assets","user":{"login":"delallea","id":507137,"avatar_url":"https://avatars.githubusercontent.com/u/507137?v=3","gravatar_id":"","url":"https://api.github.com/users/delallea","html_url":"https://github.com/delallea","followers_url":"https://api.github.com/users/delallea/followers","following_url":"https://api.github.com/users/delallea/following{/other_user}","gists_url":"https://api.github.com/users/delallea/gists{/gist_id}","starred_url":"https://api.github.com/users/delallea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delallea/subscriptions","organizations_url":"https://api.github.com/users/delallea/orgs","repos_url":"https://api.github.com/users/delallea/repos","events_url":"https://api.github.com/users/delallea/events{/privacy}","received_events_url":"https://api.github.com/users/delallea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-16T02:01:13Z","updated_at":"2016-06-16T15:46:33Z","closed_at":null,"body":"I'm on Windows 7, not sure if it makes a difference... But the code at http://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tour.html#static-assets does not fully work. The problem is with this line:\r\n\r\n    <link rel=\"stylesheet\" href=\"{{ request.static_url('static/app.css') }}\"/>\r\n\r\nI'm getting this error:\r\n\r\n    ValueError: No static URL definition matching jinja2:static/app.css\r\n\r\nI could fix it with the following syntax instead (but since I'm super new to Pyramid I have no idea if that's the \"correct\" fix):\r\n\r\n    <link rel=\"stylesheet\" href=\"{{ request.static_url('__main__:static/app.css') }}\"/>"},"comment":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/comments/226526861","html_url":"https://github.com/Pylons/pyramid/issues/2648#issuecomment-226526861","issue_url":"https://api.github.com/repos/Pylons/pyramid/issues/2648","id":226526861,"user":{"login":"blaflamme","id":454978,"avatar_url":"https://avatars.githubusercontent.com/u/454978?v=3","gravatar_id":"","url":"https://api.github.com/users/blaflamme","html_url":"https://github.com/blaflamme","followers_url":"https://api.github.com/users/blaflamme/followers","following_url":"https://api.github.com/users/blaflamme/following{/other_user}","gists_url":"https://api.github.com/users/blaflamme/gists{/gist_id}","starred_url":"https://api.github.com/users/blaflamme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaflamme/subscriptions","organizations_url":"https://api.github.com/users/blaflamme/orgs","repos_url":"https://api.github.com/users/blaflamme/repos","events_url":"https://api.github.com/users/blaflamme/events{/privacy}","received_events_url":"https://api.github.com/users/blaflamme/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T15:46:33Z","updated_at":"2016-06-16T15:46:33Z","body":"@stevepiercy you have to switch the renderer to see the error `renderer='hello_world_static.jinja2` and it also fails on unixes.\r\n\r\n@delallea you're right, the problem is because the project is not installed as a package into the environnement so you have to specify the package name, in this case `__main__`. Thanks for the catch!\r\n\r\nWould you like to contribute the fix?"}}
{"actor":{"display_login":"blaflamme"}}