antiproblemist / django-accountkit Goto Github PK
View Code? Open in Web Editor NEWFacebook accountkit support for Django https://developers.facebook.com/docs/accountkit
License: MIT License
Facebook accountkit support for Django https://developers.facebook.com/docs/accountkit
License: MIT License
I am not that much experienced in Django.
can u explain a bit more in the documentation?
Unable to make things happen.
I'm using Python 3.6, is it not compatible via pip?
pip install django-accountkit
Collecting django-accountkit
Could not find a version that satisfies the requirement django-accountkit (from versions: )
No matching distribution found for django-accountkit
Now Django 2 is very popular. But this amazing Django-Accountkit app is not working in django 2.
When i try to install with pip, then it fails with this message:
"Could not find a version that satisfies the requirement django-accountkit (from versions: )
No matching distribution found for django-accountkit"
Wish you update for Django 2.1 as soon as possible. Thank you
Hello.
I tried installing django-accountkit for my project, and followed all the steps in the README.md file, but when I use {% accountkitjs %} inside my html file, the whole page is rendered blank: the content inside the tag is deleted.
Here is my register.html file:
{% load accountkit %}
{% load staticfiles %}
{% load compress %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>{% block title %}Register | Dorkar.co{% endblock %}</title>
{% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'scss/main.scss' %}">
{% endcompress %}
{% accountkitjs %}
</head>
<body class="{% block bodyclass %}{% endblock %}">
<header>
<h1 class="site-title">Register</h1>
</header>
<main>
{% accountkitform %}
{% smslogin %}
</main>
</body>
</html>
views.py:
from django.views.decorators.csrf import csrf_exempt
from accountkitlogin.views import login_status
@csrf_exempt
def login_success(request):
context = login_status(request)
urls.py:
from . import views
from django.views.generic import TemplateView
from django.urls import path
urlpatterns = [
path('success/', views.login_success, name='login_success'),
path('register/', TemplateView.as_view(template_name='register.html')),
]
and settings.py:
INSTALLED_APPS = [
...,
'accounts',
]
APP_ID = "xxx"
ACCOUNT_KIT_APP_SECRET = "xxx"
ACCOUNT_KIT_VERSION = "v1.0"
ACCOUNT_KIT_SUCCESS_REDIRECT = "http://localhost:8000/success"
AUTHENTICATION_BACKENDS = (
'accountkitlogin.authenticate.GetOrCreateUser',
)
Any idea what I am doing wrong here? Thanks in advance.
Have you an idea how to wrap this to use it with DRF to implement an API consumable by a mobile app?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.