Skip to main content

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

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)

Uploaded Source

File details

Details for the file django-users-plus-1.0.2.tar.gz.

File metadata

File hashes

Hashes for django-users-plus-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4e0cdff6edb3c85303f73613d697d944c32a23f681e7a6580fdc5e2872ccef9d
MD5 f345d67ff6e3810f6aeed1213aba449a
BLAKE2b-256 eaeb15eaee7fdf40349461f984f664ced36aa887a8a2106d04b555278ac9415a

See more details on using hashes here.

Supported by

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