A django app that provides extra features including masquerading, local timezone support on users, an audit log for tracking admin and view-based data changes and activities, and support for Company models and added fields to User model.
Project description
.. image:: https://circleci.com/gh/foundertherapy/django-users-plus.svg?style=svg
:target: https://circleci.com/gh/foundertherapy/django-users-plus
========
Accounts
========
Account is an app that shall add the following features to your Django project::
1. An inherited User model with extra fields like Company, First Name, Last Name, etc...
2. Create users and login using email address instead of username.
3. Masquerading feature.
4. Enabling Timezone to set to the user's local timezone.
5. Audit log model to track extra user specific actions.
Quick start
-----------
1. Add "accounts" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'accounts',
'django.contrib.sites',
]
2. This library will use the default AuditLogEvent model for events logging, if you need to customize it, please extend it in your app, and add the following tho the settings::
```
AUDIT_LOG_EVENT_MODEL = '<app name>.<the name of the model that is extending the base AuditLogEvent>'
```
3.Include the accounts URLconf in your project urls.py like this::
url(r'^', include('accounts.urls')),
4. Add SITE_ID into settings file.
5. Run `python manage.py migrate` to create the accounts models.
6. Start the development server admin/ to create users and companies. From Users list view, you can take advantage of the masquerading feature.
7. For timezone enablement, add "" to MIDDLEWARE_CLASSES like this::
MIDDLEWARE_CLASSES = (
...
'accounts.middleware.TimezoneMiddleware',
)
8. A new Audit Log model added to capture the following events::
- User creation
- User login
- User logout
- User email change
- Masquerade start
- Masquerade end
- Password change
- Password reset
- Activate user
- Deactivate user
- Company name change
:target: https://circleci.com/gh/foundertherapy/django-users-plus
========
Accounts
========
Account is an app that shall add the following features to your Django project::
1. An inherited User model with extra fields like Company, First Name, Last Name, etc...
2. Create users and login using email address instead of username.
3. Masquerading feature.
4. Enabling Timezone to set to the user's local timezone.
5. Audit log model to track extra user specific actions.
Quick start
-----------
1. Add "accounts" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'accounts',
'django.contrib.sites',
]
2. This library will use the default AuditLogEvent model for events logging, if you need to customize it, please extend it in your app, and add the following tho the settings::
```
AUDIT_LOG_EVENT_MODEL = '<app name>.<the name of the model that is extending the base AuditLogEvent>'
```
3.Include the accounts URLconf in your project urls.py like this::
url(r'^', include('accounts.urls')),
4. Add SITE_ID into settings file.
5. Run `python manage.py migrate` to create the accounts models.
6. Start the development server admin/ to create users and companies. From Users list view, you can take advantage of the masquerading feature.
7. For timezone enablement, add "" to MIDDLEWARE_CLASSES like this::
MIDDLEWARE_CLASSES = (
...
'accounts.middleware.TimezoneMiddleware',
)
8. A new Audit Log model added to capture the following events::
- User creation
- User login
- User logout
- User email change
- Masquerade start
- Masquerade end
- Password change
- Password reset
- Activate user
- Deactivate user
- Company name change
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
django-users-plus-1.0.2.tar.gz
(22.3 kB
view details)
File details
Details for the file django-users-plus-1.0.2.tar.gz
.
File metadata
- Download URL: django-users-plus-1.0.2.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e0cdff6edb3c85303f73613d697d944c32a23f681e7a6580fdc5e2872ccef9d |
|
MD5 | f345d67ff6e3810f6aeed1213aba449a |
|
BLAKE2b-256 | eaeb15eaee7fdf40349461f984f664ced36aa887a8a2106d04b555278ac9415a |