title: Read file in Django Management Command
body: <p>I'm trying to read credentials for the Google Sheets API using gspread. I wrote the following code: </p>
  
  <pre><code>class Command(BaseCommand):
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
  
      def handle(self, *args, **kwargs):
          scope = ['https://spreadsheets.google.com/feeds',
           'https://www.googleapis.com/auth/drive']
  
          credentials = ServiceAccountCredentials.from_json_keyfile_name('/static/json/spreadsheets.json', scope)
  
          gc = gspread.authorize(credentials)
  
          wks = gc.open("Where is the money Lebowski?").sheet1
  
          self.stdout.write(self.style.SUCCESS('Succesfully ran "sheets" command'))
  </code></pre>
  
  <p>Reading the file returns the following error: </p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'static/json/spreadsheets.json'
  </code></pre>
  
  <p>I tried multiple paths like: </p>
  
  <ul>
  <li>'~/static/json/spreadsheets.json'</li>
  <li>'/json/spreadsheets.json'</li>
  <li>'spreadsheets.json'</li>
  </ul>
  
  <p>But none seem to work. Could anybody help me out here?</p>