All Questions
12 questions
0
votes
1
answer
28
views
Django Mock database not working properly
I was coding a unit test method for a post method, but for some reason, it keeps modifying the actual database instead of the mock database.
This is my test method:
def test_post_contest(self):
...
0
votes
1
answer
128
views
firebase-admin adding a random alphanumeric key to the realtime database when using push()
I am using the Python firebase-admin library to integrate Django rest framework and Firebase Realtime storage. I am using the push() function to create a new child node. However, the function adds an ...
0
votes
2
answers
407
views
Connecting to Firestore with Firebase Admin SDK Causes App to Freeze
I am trying to use Firebase Admin SDK in a Django app using a service account. I followed the instructions as per the official documentation. However, the app freezes at the point when Firebase Admin ...
1
vote
1
answer
871
views
Python Firebase Admin SDK, Illegal Firebase credential provided
I'm trying initialising Firebase Admin SDK using .env file on a Django app and I get the following error:
Illegal Firebase credential provided. App must be initialized with a valid credential instance
...
0
votes
1
answer
829
views
Upload image to Firebase using Django
I have a Django rest API, in which there is an API to get an image from formdata.
from django.shortcuts import render
from django.http.response import JsonResponse
from rest_framework.parsers import ...
1
vote
1
answer
3k
views
Firebase Admin Send Multicast not getting called or working
I'm working on django project in which i need to send notifications to the users using firebase admin sdk. but when ever i tried to send notification i see no logs for messaging.send_multicast(message)...
5
votes
3
answers
3k
views
Unable to install firebase-admin pip package for python django in Apple M1 chip
Unable to install firebase-admin in Apple M1 Chip System
System Configuration
System OS: macOS Bigsur(11.2.2)
chip: Apple M1
python version: 3.9.2
Pip Version: 20.0.1
Djnago: 3.1.7
I create ...
1
vote
1
answer
1k
views
Django application fails to deploy on AWS ElasticBeanstalk with 'firebase-admin' library
I am deploying my python/django application to aws elasticbeanstalk.
It gets deployed fine if i don't specify 'firebase-admin' library in requirements.txt.
But fails to deploy if i add 'firebase-admin'...
1
vote
1
answer
258
views
Firebase python admin sdk isNewUser ()
Hi i'm currently using firebase admin sdk on my django server to handle my app. I would like to check if user a user first time login on the server side.I would like to use firebase isNewUser() on the ...
0
votes
1
answer
353
views
get_user(uid).email returns None if user is logged in by facebook in firebase_admin django
Code:
import firebase_admin
from firebase_admin import auth
from firebase_admin import credentials
from firebase_admin.auth import get_user
cred = credentials.Certificate("cred.json")
firebase_admin....
0
votes
1
answer
1k
views
Hitting Firebase from django development server
I am using firebase-admin library for python. Whenever I try to hit firebase from localhost(http://127.0.0.1) i am getting below error.
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (...
0
votes
0
answers
674
views
Python firebase admin sdk - Realtime update listener
Do you have any plan to add realtime update listener in python firebase admin sdk? I have django api service. I want to change my current authentication and authorization system to firebase ...