• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Django 1.5: Introduction to Custom User Models
 

Django 1.5: Introduction to Custom User Models

on

  • 623 views

Slides for presentation http://www.meetup.com/Bangalore-Django-User-Group/events/136243972/ ...

Slides for presentation http://www.meetup.com/Bangalore-Django-User-Group/events/136243972/

Presentation, sample project github repo link and demo video links availble at the comment section of above given link.

Statistics

Views

Total Views
623
Views on SlideShare
623
Embed Views
0

Actions

Likes
0
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Django 1.5: Introduction to Custom User Models Django 1.5: Introduction to Custom User Models Presentation Transcript

    • Django 1.5 Introductionto CustomUserModels Arulmurugan Rajaraman August27, 2013 BangaloreDjangoUserGroup
    • Custom User Model • Django 1.5 • AUTH_USER_MODEL = ‘MyApp.MyModel’ • get_user_model() BangaloreDjangoUserGroup
    • Custom User Model • USERNAME_FIELD • REQUIRED_FIELDS • models.AbstractBaseUser • get_username() • is_anonymous() • is_authenticated() • set_password(raw_password) • check_password(raw_password) • set_unusable_password() • has_unusable_password() BangaloreDjangoUserGroup
    • Custom User and Admin • models.CustomUser • is_staff() • is_active() • has_perm(perm, obj = None) • has_module_perms(app_label) • models.PermissionsMixin • is_superuser • get_group_permissions(obj= None) • get_all_permissions(obj = None) • has_perm(perm, obj = None) • has_perms(perm_list, obj = None) • has_module_perms(package_name) BangaloreDjangoUserGroup
    • Custom User Manager • create_user(*username_field*, password = None, **other_fields) • create_superuser(*username_field*, password, **other_fields) • models.BaseUserManager • normalize_email(email) • get_by_natural_key(username) • make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVW XYZ23456789') BangaloreDjangoUserGroup
    • Demo BangaloreDjangoUserGroup
    • Thank you arul@arulmr.com slideshare.net/arulmr github.com/arulmr BangaloreDjangoUserGroup
    • MeetupLinks: • Session Video Link http://www.youtube.com/watch?v=hEwl7lhCUPI • Github Repo Link https://github.com/arulmr/dj15_demo • Presentation Link http://www.slideshare.net/arulmr/django-25667413 BangaloreDjangoUserGroup