Skip to main content

REST version of Django authentication system.

Project description

https://img.shields.io/pypi/v/djoser.svg https://img.shields.io/travis/sunscrapers/djoser/master.svg https://img.shields.io/codecov/c/github/sunscrapers/djoser.svg https://img.shields.io/scrutinizer/g/sunscrapers/djoser.svg

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.

https://asciinema.org/a/FBTYjfDPUr99jxZqbLOZhh9Pd.png

Requirements

To be able to run djoser you have to meet following requirements:

  • Python (2.7, 3.4, 3.5, 3.6)

  • Django (1.11, 2.0, 2.1, 2.2)

  • Django REST Framework (3.7, 3.8, 3.9)

Bear in mind that for Django-2.x you will need at least Python 3.5

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

If you are a pipenv user you can quickly setup testing environment by using Make commands:

$ make init
$ make test

Otherwise, if you cannot use Make commands, please create virtualenv and install requirements manually:

$ pip install django djangorestframework
$ pip install -r requirements.txt

If you are running djoser tests on Python 2.7 you also need to install mock library.

$ pip install mock  # only on Python 2.7
$ cd testproject
$ ./manage.py test

If you need to run tests against all supported Python and Django versions then invoke:

$ pip install tox
$ tox

You can also play with test project by running following commands:

$ ./manage.py migrate
$ ./manage.py runserver

Similar projects

List of projects related to Django, REST and authentication:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djoser-1.7.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djoser-1.7.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file djoser-1.7.0.tar.gz.

File metadata

  • Download URL: djoser-1.7.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for djoser-1.7.0.tar.gz
Algorithm Hash digest
SHA256 d0ca48a05f590d77d6d292177c735a92b639f78a7060c1861d9b5317843a0685
MD5 1a160e2c72f575fd3a61bcaa9761e378
BLAKE2b-256 fe18f842b1e6466237e35a5b8806905e326dff203217d5b478226f6440188f4f

See more details on using hashes here.

File details

Details for the file djoser-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: djoser-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for djoser-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e310801b225ea668a035d3da90c1c9ca5b80a294235b9a25a5999fbc9ac5a96
MD5 1d35e5570bda406bb52d63ff45447aa1
BLAKE2b-256 37de64e217eeadfb7674a51bd7440ed6998081cac5a075855c1630b42983297d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page