django-spa-cookie-auth
cookiecutter-django
django-spa-cookie-auth | cookiecutter-django | |
---|---|---|
2 | 1 | |
129 | 23 | |
- | - | |
2.6 | 5.6 | |
10 months ago | 13 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
django-spa-cookie-auth
-
CSRF with DRF and SPA?
This guide and repo says that you should write an unprotected api route which returns a csrf token in the response body. Then your SPA should hit that route first, read the csrf token from the response body, then post a login requst.
-
Django Sessionbased Auth For Single Page Apps
You call the api/csrf/ endpoint: https://github.com/duplxey/django-spa-cookie-auth/blob/master/django_react_cross_origin/frontend/src/App.js#L22
cookiecutter-django
What are some alternatives?
drfx - A framework for launching new Django Rest Framework projects quickly.
fastapi-dramatiq-data-ingestion - Sample project showing reliable data ingestion application using FastAPI and dramatiq
drfauthproject - HowTo do Authentication and Authorization in Django REST Framework | Dj-Rest-Auth | Gmail | CRUD | API
uvicorn-gunicorn-docker - Docker image with Uvicorn managed by Gunicorn for high-performance web applications in Python with performance auto-tuning.
aiomultiprocess - Take a modern Python codebase to the next level of performance.
example-hftish - Example Order Book Imbalance Algorithm
walnats - 🌰 Nats-powered event-driven background jobs and microservices framework for Python.
aiotimers - An asynchronous implementation of timers in Python3.
tortoise-orm - Familiar asyncio ORM for python, built with relations in mind
jockey - 🏇 Generic Python library for running asynchronous workers. Useful for building event handlers, web frameworks, and alike.