Best option if the Django admin site if you have few users.

If you have lots of users then it is best to write a script to create
them, or write django fixtures:

https://docs.djangoproject.com/en/dev/howto/initial-data/#providing-initial-data-with-fixtures

To see how a user fixture looks like do:

python manage.py dumpdata auth.User --indent=4

[
    {
        "pk": 1,
        "model": "auth.user",
        "fields": {
            "username": "admin",
            "first_name": "",
            "last_name": "",
            "is_active": true,
            "is_superuser": true,
            "is_staff": true,
            "last_login": "2011-03-29 23:32:19",
            "groups": [],
            "user_permissions": [],
            "password": "sha1$6e0cf$2b4e93a9dc89d1197d6b6d636fb150b978b83bc2",
            "email": "",
            "date_joined": "2011-03-29 23:32:19"
        }
    }
]

On Wed, Aug 17, 2011 at 4:00 PM, Patrick Krejci <[email protected]> wrote:
> Hi list,
> whats the best way to add new users and user groups in Geonode? Is there a
> command to add a new user and user groups with the django-admin.py (like
> django-admin.py createsuperuser --settings=geonode.settings) or should I
> manage new users and groups by the use of the django admin site?
>
> Thanks
> --
> Patrick Krejci
>
>

Reply via email to