Authenticate a Django/Appengine project using Firebase - python

I currently have google and facebook authentication for my application. I would like to add firebase-auth as the backend for my Django/appengine backend. The tutorial i followed (https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine) only show how to use it for a python Flask backend.
Does anyone know how to set up firebase in a Django backend that uses appengine?

You should follow the same logic mentioned in the tutorial that you indicated here. As per the documentation informs:
The sample app uses Flask because of its simplicity and ease of use, but the concepts and technologies explored are applicable regardless of which framework you use.
So, the concepts are the same for any framework, which should work for you using Django. Since there isn't a specific tutorial for the use of Django, I recommend you take a look at the below article, to better understand the integration of Firebase and Django, so you can implement it on your
Python Django with Google Firebase : Getting Started, Intro, Basic Configuration & Firebase Authentication #Part1
Let me know if the information helped you!

Related

Is it possible to make a mobile app in Django?

I was wondering if it is possible for me to use Django code I have for my website and somehow use that in a mobile app, in a framework such as, for example, Flutter.
So is it possible to use the Django backend I have right now and use it in a mobile app?
So like the models, views etc...
Yes. There are a couple ways you could do it
Use the Django Rest Framework to serve as the backend for something like React Native.
Build a traditional website for mobile and then run it through a tool like PhoneGap.
Use the standard Android app tools and use Django to serve and process data through API requests.
Update for 2022: This article from AppPresser provides alternatives to PhoneGap which was mentioned in the other answer. These alternatives can be used to package web native sites as mobile apps.
The alternatives listed are:
Bitrise
Ionic
The honorable mentions were:
Appcircle
Appcenter
CodeMagic
Codeship

Django development

This question isn't related to any programming problem or bug rather it's asked to seek knowledge from django developers. I couldnt find proper info as I'm a novice web dev.
I'm a mobile developer and heard quite alot about django. I have looked it up on the internet and official website, from the looks of it, it looks like a framework that is used for storing and retriving data from the database. What are other uses of this framework?
Can django be used to send and receive data from a mobile device?
Your question is not belongs to this site, btw, yes, Django is one of the most famous web frameworks of python, you can up a server via wsgi (or uwsgi) module and make a rest-api server via rest-api-framework, also create SOA.
It depends on your needs, but I think you can use DRF (Django Rest Framework) to standardize your server.
Django was created by a newspaper that wanted a better way of publishing articles. It is a framework for publishing content in a reliable way, so that different types of articles can have corresponding views.
Since then it has evolved a lot so that it can serve as a back-end for many types of websites. I'd suggest checking the Django tutorial which has a lot of good examples and code samples to run through:
https://docs.djangoproject.com/en/1.9/intro/tutorial01/

Django facebook, twitter and google + authentication

I need to get facebook, google+ and twitter authentication for my django app. What module should I use? I am using Django 1.8 and I've checked a couple of them but which one is the best? Any suggestions will be appreciated.
Thanks in advance!
This is an approximation using the Django rest framework https://github.com/PhilipGarnero/django-rest-framework-social-oauth2. You should be familiarized with OAuth2 protocol (basically you use someone else's security to authenticate an user in you app). Also there is this library https://github.com/requests/requests-oauthlib, look at the documentation, it's pretty well explained and has examples with Tumblr, Facebook,etc. The lastone works with Python in general, no Django needed (just in case).
Go for python-social-auth. It is good and well documented. You can start from here for introduction.

A question about Django and Google Apps

Just wondering about this, is it possible to use Django with the Google Apps API's? I have a small organization that uses Google Apps Education Edition. I was thinking about making a small intranet using Django, and I would love if the first page they saw when they logged in had a few widgets with their email, calendar, maybe docs. I looked over some of the api's, and it seemed that getting the data was possible using the gdata library; but when I looked into using Django, all the search results returned pages about running Django on the app engine, nothing about Google Apps. Just looking for a little guidance, if anyone knew a page or a tutorial where someone had done this.
Thanks!
Yes, it is possible. This is not a question about Django and GAE in particular; you may have more luck searching for tutorials on using Django with generic web APIs.
Here's one I found almost immediately; it uses the del.icio.us API but the idea is the same.
Yes, it is. See this help topic.

Facebook connect on Google App Engine with Django Patch

We are building a website on Google App Engine, using django patch.
We would like to use Facebook connect for two purposes:
Authenticate users.
Access user's social data.
Searching for a solution in the usual places (google, FB, SO) brigs up a lot of noise, many partial solutions and no clear answer.
So the question is this: does anyone has a clear working solution? maybe even a recipe?
Thanks.
Honza: we where looking for something that also does authentication Django style.
We ended up doing the login on the client side than sending an AJAX request to Django and wrote our own authenticate/login logic.
Once we get the user's credentials, we use PyFacebook for FB connectivity.

Categories