A django app for basic utilities - user registration, login, change password, reset password
Project description
=====
Account Utils
=====
Accountutils is a simple django application to facilitate basic functionalities, like forgot password, change password, for api based projects.
Quick start
-----------
1. Add "accountutils" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'accountutils',
]
2. Include the accountutils URLconf in your project urls.py like this::
url('utils/', include('accountutils.urls')),
3. Run `python manage.py migrate` to create the accountutils models.
4. Add required settings in settings.py::
USEEMAIL='youremail@somewhere.com'
EMAIL_USE_TLS = True or False
EMAIL_HOST = 'your host'
EMAIL_PORT = <port>
EMAIL_HOST_USER = USEEMAIL
EMAIL_HOST_PASSWORD ='your password'
DEFAULT_FROM_EMAIL = USEEMAIL
DEFAULT_TO_EMAIL = ''
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#if communication mails has to be send
SEND_REGISTRATION_MAILS = True or False #dafault True
5. Now you will have the api endpoints for registration, login, change password, forgot password etc.
#incase, use use the utils in step 2
/utils/request/forgot/password/ #post request
/utils/check/forgot_password_code/ #post request
/utils/reset/password/ #post request
/utils/change/password/ #post request
#login user
/utils/login/ #post request
#register user
/utils/register/ #post request
Account Utils
=====
Accountutils is a simple django application to facilitate basic functionalities, like forgot password, change password, for api based projects.
Quick start
-----------
1. Add "accountutils" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'accountutils',
]
2. Include the accountutils URLconf in your project urls.py like this::
url('utils/', include('accountutils.urls')),
3. Run `python manage.py migrate` to create the accountutils models.
4. Add required settings in settings.py::
USEEMAIL='youremail@somewhere.com'
EMAIL_USE_TLS = True or False
EMAIL_HOST = 'your host'
EMAIL_PORT = <port>
EMAIL_HOST_USER = USEEMAIL
EMAIL_HOST_PASSWORD ='your password'
DEFAULT_FROM_EMAIL = USEEMAIL
DEFAULT_TO_EMAIL = ''
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#if communication mails has to be send
SEND_REGISTRATION_MAILS = True or False #dafault True
5. Now you will have the api endpoints for registration, login, change password, forgot password etc.
#incase, use use the utils in step 2
/utils/request/forgot/password/ #post request
/utils/check/forgot_password_code/ #post request
/utils/reset/password/ #post request
/utils/change/password/ #post request
#login user
/utils/login/ #post request
#register user
/utils/register/ #post request
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
Built Distribution
File details
Details for the file django-accountutils-0.3.tar.gz
.
File metadata
- Download URL: django-accountutils-0.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495a4228870bca1fd5f7b0680f5f005a5feba83880cb2f6e19d75a386f2d11b8 |
|
MD5 | cd16808482c91040f1a15271242b6e6f |
|
BLAKE2b-256 | 1b608bd1a12d3645a16929c66c922ade38c96387f96f4981940575d7409c2a81 |
File details
Details for the file django_accountutils-0.3-py3-none-any.whl
.
File metadata
- Download URL: django_accountutils-0.3-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e057fadc1b3c595091aebba372f2069d2497f2c0c58e27df915a2e467625c408 |
|
MD5 | ff9da20c117a94fe911daadc8560a221 |
|
BLAKE2b-256 | 19531fa6785af01d045908f18ae8e77c4b914a00bc8eff31b4c83afacb2db2a0 |