{"action":"created","issue":{"url":"https://api.github.com/repos/swcarpentry/amy/issues/246","labels_url":"https://api.github.com/repos/swcarpentry/amy/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/swcarpentry/amy/issues/246/comments","events_url":"https://api.github.com/repos/swcarpentry/amy/issues/246/events","html_url":"https://github.com/swcarpentry/amy/issues/246","id":69402243,"number":246,"title":"Turn `views.py` into Python package","user":{"login":"pbanaszkiewicz","id":72821,"avatar_url":"https://avatars.githubusercontent.com/u/72821?v=3","gravatar_id":"","url":"https://api.github.com/users/pbanaszkiewicz","html_url":"https://github.com/pbanaszkiewicz","followers_url":"https://api.github.com/users/pbanaszkiewicz/followers","following_url":"https://api.github.com/users/pbanaszkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/pbanaszkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/pbanaszkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbanaszkiewicz/subscriptions","organizations_url":"https://api.github.com/users/pbanaszkiewicz/orgs","repos_url":"https://api.github.com/users/pbanaszkiewicz/repos","events_url":"https://api.github.com/users/pbanaszkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/pbanaszkiewicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swcarpentry/amy/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-19T09:02:14Z","updated_at":"2015-04-22T21:34:04Z","closed_at":null,"body":"`views.py` has gotten very big. It'd be handy to turn it into a Python package, for example with this structure:\r\n\r\n```\r\nviews\r\n→ __init__.py\r\n→ base.py\r\n→ persons.py\r\n→ events.py\r\n→ index.py\r\n→ sites.py\r\n→ airports.py\r\n→ tasks.py\r\n→ badges.py\r\n→ extra.py\r\n```"},"comment":{"url":"https://api.github.com/repos/swcarpentry/amy/issues/comments/95344398","html_url":"https://github.com/swcarpentry/amy/issues/246#issuecomment-95344398","issue_url":"https://api.github.com/repos/swcarpentry/amy/issues/246","id":95344398,"user":{"login":"codersquid","id":529748,"avatar_url":"https://avatars.githubusercontent.com/u/529748?v=3","gravatar_id":"","url":"https://api.github.com/users/codersquid","html_url":"https://github.com/codersquid","followers_url":"https://api.github.com/users/codersquid/followers","following_url":"https://api.github.com/users/codersquid/following{/other_user}","gists_url":"https://api.github.com/users/codersquid/gists{/gist_id}","starred_url":"https://api.github.com/users/codersquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codersquid/subscriptions","organizations_url":"https://api.github.com/users/codersquid/orgs","repos_url":"https://api.github.com/users/codersquid/repos","events_url":"https://api.github.com/users/codersquid/events{/privacy}","received_events_url":"https://api.github.com/users/codersquid/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T21:34:04Z","updated_at":"2015-04-22T21:34:04Z","body":"You don't want to turn `views.py` in to a package. The lengthy view file is a side effect of having everything in one django app. What you can do is take a look at what exists in the `workshops` app and see what makes sense to break out in to different apps."}}