Skip to main content

NEMO plugin allowing users to create and manage their own accounts.

Project description

NEMO External Users

NEMO plugin allowing users to create and manage their own accounts.

Installation

  1. Install the package using pip

    pip install NEMO-external-users
    
  2. Edit settings.py

    • Add the plugin to your INSTALLED_APPS:

      INSTALLED_APPS = [
          "django.contrib.sites",
          ...,
          "NEMO_external_users",
          "NEMO",
          ...,
      ]
      

      It's important that "NEMO_external_users" is added before "NEMO" (it overrides some of the templates).

    • Extend authentication backends:

      AUTHENTICATION_BACKENDS = [
          ...,
          'NEMO_external_users.backends.SettingsBackend',
          'NEMO_external_users.backends.ExternalUsersBackend',
      ]
      
    • Add to context_processors:

      'NEMO.context_processors.show_logout_button',
      
  3. Run migrations

    python manage.py migrate
    

Settings

# Default projects to which new users will be assigned
NEMO_EXTERNAL_USERS_NEW_USER_PROJECTS = [...]

# Default tool qualification groups to which new users will be assigned
NEMO_EXTERNAL_USERS_NEW_USER_TOOL_QUALIFICATION_GROUPS = [...]

# Default tools to which new users will be assigned
NEMO_EXTERNAL_USERS_NEW_USER_TOOLS = [...]

# Permissions for the new users (boolean)
NEMO_EXTERNAL_USERS_NEW_USER_IS_STAFF = False
NEMO_EXTERNAL_USERS_NEW_USER_IS_USER_OFFICE = False
NEMO_EXTERNAL_USERS_NEW_USER_IS_ACCOUNTING_OFFICER = False
NEMO_EXTERNAL_USERS_NEW_USER_IS_FACILITY_MANAGER = False
NEMO_EXTERNAL_USERS_NEW_USER_IS_ADMINISTRATOR = False
NEMO_EXTERNAL_USERS_NEW_USER_IS_TECHNICIAN = False
NEMO_EXTERNAL_USERS_NEW_USER_IS_SERVICE_PERSONNEL = False

# Indicator if training is required for the new users
NEMO_EXTERNAL_USERS_NEW_USER_TRAINING_REQUIRED = True

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

nemo_external_users-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

nemo_external_users-0.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file nemo_external_users-0.1.0.tar.gz.

File metadata

  • Download URL: nemo_external_users-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for nemo_external_users-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a229bcd5129233e75b7bde1f466cdd4c6c30dcf55e51bc49bb4837fa9b9086a4
MD5 bde858feac28752d8aff073065be7b1d
BLAKE2b-256 f4afb643efd5beb33874f947e3e53db0838a696aeb680ca8d1e03bd5172b6d44

See more details on using hashes here.

File details

Details for the file nemo_external_users-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nemo_external_users-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c15469230844ad2882bf06c7e18315775c4e4ffb21acdcea0cbbeab269376338
MD5 68b7813dd1559943e537dbcaac6db5de
BLAKE2b-256 7946a20d8818d499fe40b348c1ea712e0e21ba922bf1f9652a8ad21612084be4

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