Git Product home page Git Product logo

antiproblemist / django-accountkit Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 2.0 38 KB

Facebook accountkit support for Django https://developers.facebook.com/docs/accountkit

License: MIT License

Python 100.00%
account-kit authentication django django-accountkit django-authentication email-authentication facebook-account-kit facebook-api facebook-graph-api otp otp-auth passwordless-login

django-accountkit's People

Contributors

antiproblemist avatar assem-ch avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-accountkit's Issues

Documentation

I am not that much experienced in Django.
can u explain a bit more in the documentation?
Unable to make things happen.

Can't install via pip

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

Django 2 support

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

Template tags render blank content

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.