{"action":"created","issue":{"url":"https://api.github.com/repos/brijeshb42/yapper/issues/2","labels_url":"https://api.github.com/repos/brijeshb42/yapper/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/brijeshb42/yapper/issues/2/comments","events_url":"https://api.github.com/repos/brijeshb42/yapper/issues/2/events","html_url":"https://github.com/brijeshb42/yapper/issues/2","id":108931047,"number":2,"title":"import os and app?","user":{"login":"scheung38","id":1273014,"avatar_url":"https://avatars.githubusercontent.com/u/1273014?v=3","gravatar_id":"","url":"https://api.github.com/users/scheung38","html_url":"https://github.com/scheung38","followers_url":"https://api.github.com/users/scheung38/followers","following_url":"https://api.github.com/users/scheung38/following{/other_user}","gists_url":"https://api.github.com/users/scheung38/gists{/gist_id}","starred_url":"https://api.github.com/users/scheung38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheung38/subscriptions","organizations_url":"https://api.github.com/users/scheung38/orgs","repos_url":"https://api.github.com/users/scheung38/repos","events_url":"https://api.github.com/users/scheung38/events{/privacy}","received_events_url":"https://api.github.com/users/scheung38/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-29T18:33:12Z","updated_at":"2015-10-05T15:21:12Z","closed_at":"2015-10-02T06:16:50Z","body":"Do you need to import os and app in yapper.backend.main.controller.py?\r\n```\r\nimport os\r\nfrom application import app\r\n```\r\n```\r\nfrom flask import render_template, send_from_directory\r\nfrom . import main_blueprint\r\n\r\n\r\n@main_blueprint.route('/')\r\ndef index():\r\n    return render_template('main/index.html')\r\n\r\n\r\n@main_blueprint.route('/favicon.ico')\r\ndef favicon():\r\n    return send_from_directory(\r\n        os.path.join(app.root_path, 'static'),  <--- Here\r\n        'favicon.ico',\r\n        mimetype='image/vnd.microsoft.icon'\r\n    )\r\n```\r\nNot sure why\r\n```\r\n$ python manage.py test\r\nIOError: [Errno 2] No such file or directory: \r\n'/Users/seb/PycharmProjects/yapper/logs/logfile.log'\r\n\r\n$ python manage.py db init\r\nIOError: [Errno 2] No such file or directory: \r\n'/Users/seb/PycharmProjects/yapper/logs/logfile.log'\r\n```\r\n\r\nMaybe\r\n```\r\n/bin/bash /Users/seb/PycharmProjects/yapper/start.sh\r\nEnter FLASK_ENV(dev, prod, test): dev\r\ndev\r\n/Users/seb/PycharmProjects/yapper/start.sh: line 6: logs/access.log: No such file or directory\r\n\r\nProcess finished with exit code 1\r\n```"},"comment":{"url":"https://api.github.com/repos/brijeshb42/yapper/issues/comments/145567527","html_url":"https://github.com/brijeshb42/yapper/issues/2#issuecomment-145567527","issue_url":"https://api.github.com/repos/brijeshb42/yapper/issues/2","id":145567527,"user":{"login":"brijeshb42","id":717550,"avatar_url":"https://avatars.githubusercontent.com/u/717550?v=3","gravatar_id":"","url":"https://api.github.com/users/brijeshb42","html_url":"https://github.com/brijeshb42","followers_url":"https://api.github.com/users/brijeshb42/followers","following_url":"https://api.github.com/users/brijeshb42/following{/other_user}","gists_url":"https://api.github.com/users/brijeshb42/gists{/gist_id}","starred_url":"https://api.github.com/users/brijeshb42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brijeshb42/subscriptions","organizations_url":"https://api.github.com/users/brijeshb42/orgs","repos_url":"https://api.github.com/users/brijeshb42/repos","events_url":"https://api.github.com/users/brijeshb42/events{/privacy}","received_events_url":"https://api.github.com/users/brijeshb42/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T15:21:12Z","updated_at":"2015-10-05T15:21:12Z","body":"No. I should add this to `init.sh`. Thanks for pointing it out."}}