{"action":"closed","issue":{"url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/196","repository_url":"https://api.github.com/repos/miguelgrinberg/flasky","labels_url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/196/comments","events_url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/196/events","html_url":"https://github.com/miguelgrinberg/flasky/issues/196","id":184680443,"number":196,"title":"why main blueprint doesn't need 'main/*.html' when render_template function is used?","user":{"login":"deveshaggrawal19","id":17562041,"avatar_url":"https://avatars.githubusercontent.com/u/17562041?v=3","gravatar_id":"","url":"https://api.github.com/users/deveshaggrawal19","html_url":"https://github.com/deveshaggrawal19","followers_url":"https://api.github.com/users/deveshaggrawal19/followers","following_url":"https://api.github.com/users/deveshaggrawal19/following{/other_user}","gists_url":"https://api.github.com/users/deveshaggrawal19/gists{/gist_id}","starred_url":"https://api.github.com/users/deveshaggrawal19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deveshaggrawal19/subscriptions","organizations_url":"https://api.github.com/users/deveshaggrawal19/orgs","repos_url":"https://api.github.com/users/deveshaggrawal19/repos","events_url":"https://api.github.com/users/deveshaggrawal19/events{/privacy}","received_events_url":"https://api.github.com/users/deveshaggrawal19/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miguelgrinberg/flasky/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-23T09:40:03Z","updated_at":"2016-10-23T18:39:15Z","closed_at":"2016-10-23T18:39:14Z","body":"I'm using your code to integrate into my project. But I'm unable to make the auth blueprint's template working. Then I saw that main blueprint doesn't need to have a subdirectory in the templates folder. Can you explain why auth blueprint needs to have a subdirectory but main doesn't?\r\nAlso, help me to find the bug in render the template from templates folder in auth/views.py file\r\n\r\nHere is the traceback of the error:\r\n\r\n127.0.0.1 - - [23/Oct/2016 15:09:28] \"GET /auth/login HTTP/1.1\" 500 -\r\nTraceback (most recent call last):\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 2000, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1991, in wsgi_app\r\n    response = self.make_response(self.handle_exception(e))\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1567, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/_compat.py\", line 33, in reraise\r\n    raise value\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1988, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1641, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1544, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/_compat.py\", line 33, in reraise\r\n    raise value\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1639, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 1625, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/srv/www/buyucoin/app/auth/views.py\", line 46, in login\r\n    return render_template('auth/login.html', form=form)\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/templating.py\", line 132, in render_template\r\n    ctx.app.update_template_context(context)\r\n  File \"/srv/www/env/lib/python3.4/site-packages/flask/app.py\", line 765, in update_template_context\r\n    context.update(func())\r\nTypeError: 'NoneType' object is not iterable\r\n127.0.0.1 - - [23/Oct/2016 15:09:28] \"GET /auth/login?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1\" 200 -\r\n127.0.0.1 - - [23/Oct/2016 15:09:28] \"GET /auth/login?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1\" 200 -\r\n127.0.0.1 - - [23/Oct/2016 15:09:28] \"GET /auth/login?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1\" 200 -\r\n127.0.0.1 - - [23/Oct/2016 15:09:28] \"GET /auth/login?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1\" 200 -\r\n"}}
{"actor":{"display_login":"deveshaggrawal19"}}