{"action":"created","issue":{"url":"https://api.github.com/repos/systers/vms/issues/257","repository_url":"https://api.github.com/repos/systers/vms","labels_url":"https://api.github.com/repos/systers/vms/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/systers/vms/issues/257/comments","events_url":"https://api.github.com/repos/systers/vms/issues/257/events","html_url":"https://github.com/systers/vms/issues/257","id":138954344,"number":257,"title":"Show an error message, when no organization is added and sign-up is clicked ","user":{"login":"tonythomas01","id":4214481,"avatar_url":"https://avatars.githubusercontent.com/u/4214481?v=3","gravatar_id":"","url":"https://api.github.com/users/tonythomas01","html_url":"https://github.com/tonythomas01","followers_url":"https://api.github.com/users/tonythomas01/followers","following_url":"https://api.github.com/users/tonythomas01/following{/other_user}","gists_url":"https://api.github.com/users/tonythomas01/gists{/gist_id}","starred_url":"https://api.github.com/users/tonythomas01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonythomas01/subscriptions","organizations_url":"https://api.github.com/users/tonythomas01/orgs","repos_url":"https://api.github.com/users/tonythomas01/repos","events_url":"https://api.github.com/users/tonythomas01/events{/privacy}","received_events_url":"https://api.github.com/users/tonythomas01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-07T11:16:52Z","updated_at":"2016-03-09T18:56:18Z","closed_at":null,"body":"Currently, Django checks if an organization exists, and try rendering a faulty ('organization/add_organizations.html') which do not exist. A possible better approach would be to either: \r\n\r\n1. Show up an error message, or badrequest message saying \"You need to have atleast one organization\" \r\n2. Do not show the 'Signup Volunteer' button at all, when no organization are available \r\n3. Show up a neat message in and alert div saying that you need to have at-least one organization. \r\n\r\n\r\nEven though its mentioned in http://vms.readthedocs.org/en/latest/Installation%20Guide/ that There needs to be at least one organization in the organization_organization table in order to register for an account (this be changed later). Add Google as an organization -- its not a recommended approach to send a user to a 404 right from the home page. \r\n\r\nRelated :  #39 "},"comment":{"url":"https://api.github.com/repos/systers/vms/issues/comments/194451253","html_url":"https://github.com/systers/vms/issues/257#issuecomment-194451253","issue_url":"https://api.github.com/repos/systers/vms/issues/257","id":194451253,"user":{"login":"Raxerz","id":16686007,"avatar_url":"https://avatars.githubusercontent.com/u/16686007?v=3","gravatar_id":"","url":"https://api.github.com/users/Raxerz","html_url":"https://github.com/Raxerz","followers_url":"https://api.github.com/users/Raxerz/followers","following_url":"https://api.github.com/users/Raxerz/following{/other_user}","gists_url":"https://api.github.com/users/Raxerz/gists{/gist_id}","starred_url":"https://api.github.com/users/Raxerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raxerz/subscriptions","organizations_url":"https://api.github.com/users/Raxerz/orgs","repos_url":"https://api.github.com/users/Raxerz/repos","events_url":"https://api.github.com/users/Raxerz/events{/privacy}","received_events_url":"https://api.github.com/users/Raxerz/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T18:56:17Z","updated_at":"2016-03-09T18:56:17Z","body":"#269 "}}