REST implementation of Django authentication system.
Project description
REST implementation of Django authentication system. djoser library provides a set of Django Rest Framework views to handle basic actions such as registration, login, logout, password reset and account activation. It works with custom user model.
Instead of reusing Django code (e.g. PasswordResetForm), we reimplemented few things to fit better into Single Page App architecture.
Developed by SUNSCRAPERS with passion & patience.
Requirements
To be able to run djoser you have to meet the following requirements:
Python>=3.8
Django>=3.0.0
Django REST Framework>=3.12
Installation
Simply install using pip:
$ pip install djoser
And continue with the steps described at configuration guide.
Documentation
Documentation is available to study at https://djoser.readthedocs.io and in docs directory.
Contributing and development
To start developing on djoser, clone the repository:
$ git clone git@github.com:sunscrapers/djoser.git
We use poetry as dependency management and packaging tool.
$ cd djoser
$ poetry install --all-extras
This will create a virtualenv with all development dependencies.
To run the test just type:
$ poetry run py.test testproject
We also prepared a convenient Makefile to automate commands above:
$ make init
$ make test
To activate the virtual environment run
$ poetry shell
Without poetry
New versions of pip can use pyproject.toml to build the package and install its dependencies.
$ pip install .[test]
$ cd testproject
$ ./manage.py test
Example project
You can also play with test project by running following commands:
$ make migrate
$ make runserver
Commiting your code
Before sending patches please make sure you have pre-commit activated in your local git repository:
$ pre-commit install
This will ensure that your code is cleaned before you commit it.
Similar projects
List of projects related to Django, REST and authentication:
Please, keep in mind that while using custom authentication and TokenCreateSerializer validation, there is a path that ignores intentional return of None from authenticate() and try to find User using parameters. Probably, that will be changed in the future.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file djoser-2.3.0.tar.gz
.
File metadata
- Download URL: djoser-2.3.0.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.18 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46e4b609348b824ba138aba914ca8a89bb42b7d23975c34e2702ea04b13c989 |
|
MD5 | f079291a7e03f0b3378fa1add0a6efa9 |
|
BLAKE2b-256 | da405dfe516901a86deb1e9237a11b427983ebb0618ee5616d66e2bb96cc1015 |
File details
Details for the file djoser-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: djoser-2.3.0-py3-none-any.whl
- Upload date:
- Size: 63.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.18 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af76cb8d73f8a879ab417c1251f5aa0242c4e3c4a8fee3a6393f1126874b269 |
|
MD5 | e9c600fe515db3ff364dcda3c2ae03ac |
|
BLAKE2b-256 | 26f4074dcc86fe08ef0b2356a9d18f18f782817dd8ea1cbdfbb093e47ff7250e |