Django Registration Rest Framework
Clone of Django Resgistration flow for Django Rest Framework
Needs ‘django.contrib.sites’ and an email backend
Based on
StackOverflow answer http://stackoverflow.com/a/19337404
and
django-registration https://django-registration.readthedocs.org/
Install
$ pip install django-registration-rest-framework
Usage
settings.py
INSTALLED_APPS =
...
'registration_api',
...
# This setting is mandatory
REGISTRATION_API_ACTIVATION_SUCCESS_URL = '/'
urls.py
urlpatterns = patterns(
...
url(r'^accounts_api/', include('registration_api.urls')),
...
)
Front-end
From your front-end or mobile application send a post to the register url ‘accounts_api/register/’. The fields depends on your AUTH_USER_MODEL but should be something like
[{"username": "john", "email": "john@example.com", "password": "verylongpassword"}]
This will trigger an email to the addess specified by the user. When the user follows the link the account is activated.
Test
$ python tests/runtests.py [TestsCase[.test_method]]
or
$ python setup.py test
Metadata
Release files for django-registration-rest-framework 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-registration-rest-framework-0.3.0.zip | 13.5 kB | Without provenance | Details for django-registration-rest-framework-0.3.0.zip |
Release files / django-registration-rest-framework-0.3.0.zip
| Download URL | django-registration-rest-framework-0.3.0.zip |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90b8fe61e0ba12f1da176e4df40fb13a3309794afd6c09bca4d4f38c445df261
|
|
BLAKE2b-256 checksum How to use checksums |
f0d3b49c56bf676ec773a40b93d251a271f4345125afb398ceafbafe97e51363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-registration-rest-framework 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.