{"action":"opened","issue":{"url":"https://api.github.com/repos/Djenesis/contributr/issues/53","labels_url":"https://api.github.com/repos/Djenesis/contributr/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Djenesis/contributr/issues/53/comments","events_url":"https://api.github.com/repos/Djenesis/contributr/issues/53/events","html_url":"https://github.com/Djenesis/contributr/issues/53","id":105639612,"number":53,"title":"Database settings","user":{"login":"ameistad","id":13109473,"avatar_url":"https://avatars.githubusercontent.com/u/13109473?v=3","gravatar_id":"","url":"https://api.github.com/users/ameistad","html_url":"https://github.com/ameistad","followers_url":"https://api.github.com/users/ameistad/followers","following_url":"https://api.github.com/users/ameistad/following{/other_user}","gists_url":"https://api.github.com/users/ameistad/gists{/gist_id}","starred_url":"https://api.github.com/users/ameistad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameistad/subscriptions","organizations_url":"https://api.github.com/users/ameistad/orgs","repos_url":"https://api.github.com/users/ameistad/repos","events_url":"https://api.github.com/users/ameistad/events{/privacy}","received_events_url":"https://api.github.com/users/ameistad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-09T16:57:54Z","updated_at":"2015-09-09T16:57:54Z","closed_at":null,"body":"I suggest we move the database settings in base.py to local.py. We already have settings for Heroku in production.py and there is no need to import local database settings in production. \r\n\r\nI also suggest we read database settings in local from environment variables. \r\nIf you want to use PostgreSQL you can set the the variable with \r\n```\r\nexport DATABASE_URL=postgres://username:password@127.0.0.1:5432/contributr\r\n# or just\r\nexport DATABASE_URL=postgres:///contributr\r\n# for windows\r\nexport DATABASE_URL=postgres://localhost/contributr\r\n# sqlite3 example\r\nexport DATABASE_URL=sqlite:///db.sqlite3\r\n```"}}