Skip to content

A Django authentication backend that supports Django's user and group permissions on Django-Nonrel.

License

Notifications You must be signed in to change notification settings

django-nonrel/django-permission-backend-nonrel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-permission-backend-nonrel

A Django authentication backend that supports Django's user and group permissions on Django-Nonrel.

Installation

  • Get the code from Github:

    git clone https://github.com/django-nonrel/django-permission-backend-nonrel.git

  • add permission_backend_nonrel.backends.NonrelPermissionBackend to your AUTHENTICATION_BACKENDS and permission_backend_nonrel to your INSTALLED_APPS

    settings.py:

    AUTHENTICATION_BACKENDS = (
        ...
        'permission_backend_nonrel.backends.NonrelPermissionBackend',
    )
    
    INSTALLED_APPS = (
        ...
        'permission_backend_nonrel',
    )
    
  • It's important to put 'permission_backend_nonrel after djangotoolbox, because permission_backend_nonrel.admin replaces djangotoolbox's User admin site.

    Permission and groups can be assigned and modified via Django's admin interface:

    Django-nonrel admin with user_permissions and groups

    Django-gaeauth admin interface with user_permissions and groups

  • Now you should be able to use all the standard Django permission methods and decorators, like user.has_perm('foo') and so on.

About

A Django authentication backend that supports Django's user and group permissions on Django-Nonrel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages