Skip to main content

Manage groups and user via jtable

Project description

Manage groups and users using jquery jtable

settings.py

Add to INSTALLED_APPS : ‘group_user_mngt’,

GROUP_MANAGEMENT_TEMPLATE = ‘manage_groups.html’

Replace the template with a customized template (See below how to create)

urls.py

url(r’^groupmanagement/’, include(‘group_user_mngt.urls’, namespace=”gm_space”)),

copy following files

The dist-packages subdirectory in the examples below is just an example. It all depends on how this package was installed (with or without env, ubuntu/windows, …)

Under static root :

mkdir group_user_mngt cd group_user_mngt cp -r /usr/local/lib/python2.7/dist-packages/group_user_mngt/static/group_user_mngt/* .

Group view

http://<FQDN>/groupmanagement/group/update/

Template creation

{% extends "group_user_base.html" %}

<!DOCTYPE html>
<html>
    <head>
        {% block head_group %}
        {{ block.super }}
        {% endblock %}
    </head>

    <body>


    <article>
        {% block group_user %}
        {{block.super}}
        <div id="GroupMngt" class="grid_16">{% csrf_token %}</div>
        {% endblock %}
        {% block user_group %}
        {{block.super}}
        <div id="UserMngt" class="grid_16">{% csrf_token %}</div>
        {% endblock %}
    </article>

    </body>
</html>

Future work

  • CSRF support

  • Edit permissions

  • Improve portability of app

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-group-user-mngt-1.0.tar.gz (291.7 kB view details)

Uploaded Source

File details

Details for the file django-group-user-mngt-1.0.tar.gz.

File metadata

File hashes

Hashes for django-group-user-mngt-1.0.tar.gz
Algorithm Hash digest
SHA256 ffe72e9fcd07bf127045f1c48f3abb810661d048fe742bdd95589048faf62100
MD5 fcbf49f25527ff7ff8372172291cf5cd
BLAKE2b-256 a87d24aeb8771af8bcdbf44ad57e1b51ed1dd3a3fed3dce96de276c7804b3795

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