Companies Home Search Profile

Django View Authorization: Restricting Access

Focused View

Darren Jones

32:36

342 View
  • RP - Django Authorization PDF.pdf
  • RP - Django Auth - 0 - Introduction.mp4
    01:30
  • RP - Django Auth - 1 - Getting Started.mp4
    05:15
  • RP - Django Auth - 2 - Templates and Setup.mp4
    05:46
  • RP - Django Auth - 3 - Detecting Logged-in Users.mp4
    04:34
  • RP - Django Auth - 4 - Implementing.mp4
    05:28
  • RP - Django Auth - 5 - Restricting Views.mp4
    05:32
  • RP - Django Auth - 6 - Messaging.mp4
    03:36
  • RP - Django Auth - 7 - Summary.mp4
    00:55
  • django authorization files.zip
  • Description


    Django provides tools for both authentication and authorization. Django view authorization is typically done with decorators. This course will show you how to use these view decorators to enforce authorized viewing of pages in your Django site.

    By the end of this course you’ll know how to:

    What You'll Learn?


    • Use HttpRequest and HttpRequest.user objects
    • Authenticate and authorize users
    • Differentiate between regular, staff, and admin users
    • Secure a view with the @login_required decorator
    • Restrict a view to different roles with the @user_passes_test decorator
    • Use the Django messages framework to notify your users

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Darren Jones
    Darren Jones
    Instructor's Courses

    Darren is an avid Pythonista and creates video tutorials for Real Python. Having followed a varied career as a nuclear industry instrumentation engineer, a musician, recording engineer and teacher, he’s always been interested in computers, spending the last 20 years producing music with them and teaching music technology. He’s written books on the subject, and spends the remainder of his time improving his Python skills, with a view to bringing them into the studio and classroom for better understanding of both music and programming.

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 8
    • duration 32:36
    • Release Date 2023/01/05