christiankyle-ching/roomfiles

unable to run in local host

Closed this issue · 2 comments

I followed every steps you mentioned still i am unable to run in my local host . I got this error
Screenshot from 2020-11-05 20-59-38

I might have an error with the steps on the README.

Your error comes from incorrectly setup of django-googledrive-storage. (Documentation here: https://django-googledrive-storage.readthedocs.io/en/latest/)

After you created and obtained your private key in JSON from Google Developer Console, you have 2 options:

  1. (Recommended) Add an environment variable to your local machine named GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE_CONTENTS and paste the content (not the file) of the JSON as the value.

  2. (Not recommended, you could leak your private key on source control) Go to /roomfiles/settings.py and change the value of GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE from None to the path of the JSON file where it is located in your system.

Closed for inactivity.

Duplicate of #2.