django-rest-framework-firebase
django-rest-framework-firebase copied to clipboard
how to setup firebase config json
I am not able to setup your library on localhost. I have found firebase settings example here https://github.com/firebase/firebase-admin-python/blob/master/tests/data/service_account.json
On firebase they only gave me this as a config
"apiKey": "some_key"
"authDomain": "some_link",
"databaseURL": "some_link",
"projectId": "some_id",
"storageBucket": "some_link",
"messagingSenderId": "some_id",
After hours I still can't find the answer.
I also don't know where to put SHA1 or SHA256 from firebase app settings
I am getting this error:
from rest_framework.routers import DefaultRouter
File "/home/guliver/.virtualenvs/djangox-3JrJ1blc/lib/python3.7/site-packages/rest_framework/routers.py", line 28, in
It seems entering in each attribute directly in the config isn't working. However importing the whole config.json from firebase should work.
FIREBASE_AUTH = {
'FIREBASE_ACCOUNT_KEY_FILE': 'path_to_your_credentials.json',
}