django-facebook

Django: TemplateSyntaxError: Could not parse the remainder

烈酒焚心 提交于 2020-01-12 04:11:31
问题 I am getting this issue when I type localhost:8000/admin/ . `TemplateSyntaxError: Could not parse the remainder: ':password_change' from 'admin:password_change'. The syntax of 'url' changed in Django 1.5, see the docs. Here's part of my settings.py : INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'grappelli', 'filebrowser', # Uncomment the next line to enable

Fetching facebook data once logged in using django-social-auth

﹥>﹥吖頭↗ 提交于 2020-01-01 09:54:31
问题 We've set up an application that uses the django-social-auth extension to authenticate users with Facebook. The authentication works fine, but we are not clear on how to go about fetching useful information from Facebook (friends lists, likes, etc.) It appears that django-facebook handles some of this functionality, but also handles the authorization aspects. Is there an application that would sit neatly on top of django-social-auth and provide a framework for using facebook data? Using

Mysterious problem with Fandjango

懵懂的女人 提交于 2019-12-11 03:33:14
问题 I've just configured fandjango with my simply django application. Here's the files: VIEWS.PY from django.http import HttpResponse from django.shortcuts import render from fandjango.decorators import facebook_authorization_required @facebook_authorization_required() def home(request): return render(request, 'home.html', {'facebook_user': request.facebook.user}) HOME.HTML {% if facebook_user.first_name %} You are:<br> {{ facebook_user.first_name }} {{ facebook_user.last_name }}. <br>ID: {{

Suppressing SAVE of object in POST - Django Rest Framework

故事扮演 提交于 2019-12-08 02:47:44
问题 This is related to the question : Assymetric nature of GET and POST in a Django REST framework Serializer . I've put it as a fresh question, instead of putting more questions in that thread, accordingly to SO guidelines I am writing a Viewset and a ModelSerializer for the User model to provide a /user endpoint GET - returns list and information about all users, in the standard DRF way POST - all I want the client to post is the facebook access_token (hence have put all other fields as read

Suppressing SAVE of object in POST - Django Rest Framework

Deadly 提交于 2019-12-06 07:36:12
This is related to the question : Assymetric nature of GET and POST in a Django REST framework Serializer . I've put it as a fresh question, instead of putting more questions in that thread, accordingly to SO guidelines I am writing a Viewset and a ModelSerializer for the User model to provide a /user endpoint GET - returns list and information about all users, in the standard DRF way POST - all I want the client to post is the facebook access_token (hence have put all other fields as read_only in serializer. The pre_save() in ViewSet is wired to use this access token and it uses django

Fetching facebook data once logged in using django-social-auth

放肆的年华 提交于 2019-12-04 06:07:44
We've set up an application that uses the django-social-auth extension to authenticate users with Facebook. The authentication works fine, but we are not clear on how to go about fetching useful information from Facebook (friends lists, likes, etc.) It appears that django-facebook handles some of this functionality, but also handles the authorization aspects. Is there an application that would sit neatly on top of django-social-auth and provide a framework for using facebook data? Using django-social-auth and django-facebook together seems kludgy. You might want to look into facepy . You could