Django Groups and Permissions | Database Schema Explanation | Function and Class-Based Views

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • If you want to learn about Django groups and permissions and use them effectively in your Django Application then this video is a one-step solution for you.
    In this video, we will cover -
    * What are groups and permissions and when to use them
    * Their application in Django admin panel
    * is_staff vs is_superuser explained
    * Full Database schema explanation of groups and permissions
    * How permissions are linked to database models using contentype
    * How ManyToMany field works in Django
    * Applications of groups and permissions
    * How to give permissions to staff members for securing django admin dashboard
    * Implementation using function-based and class-based views to create a group, add a user to a group, check group. Then how to allocate permission to a user, restricting views for users having certain permissions.
    * User authorization to access view or not and thus adding a security layer to our views
    * Making custom decorators and mixins.
    * Using default permissions.
    * How to create custom model-dependent and model-independent permissions.
    ✔Link For Full Playlist of Mastering Django - • Mastering Django
    👉 One-click to reach The Revolutionary Course 🚀 : • The Revolutionary Course
    If you like the video do give it a thumbs up 👍 and share with your friends
    ✅ Do subscribe to my channel "Priyanshu Gupta" for more skill development and point to point videos 💖
    I am trying to cover all problems faced by a developer as the material available on the internet is scattered and difficult to find...... I am trying to bring that all together which can be used effectively for fast and efficient productivity and skill enhancement
    Social Links -
    📸 Instagram - / priyanshu._gupta
    💻 Discord: / discord
    ✈ Telegram: t.me/priyanshu...
    ✔Link for Full Playlist of AWS Tutorials - • AWS Tutorials
    ✔Link for Full Playlist of Security Analysis and Networking - • Security Analysis: Imp...
    #django #groups #permissions

Комментарии • 67

  • @PriyanshuGuptaOfficial
    @PriyanshuGuptaOfficial  3 года назад +4

    🛑 Links For Other Exclusive Content👇💯-
    🔥Mastering Django Roadmap: www.letsprogressify.com/roadmaps/93f13210-efd8-4663-ad7e-ed0b70fad7f7/preview
    🚀 The Revolutionary Course - ruclips.net/p/PLLz6Bi1mIXhEE3NEaLz3xNn7JHBHNb34I
    👉 How to create multiple user types - ruclips.net/video/ZU5yBZja8yE/видео.html
    👉 User Registration, Login, and Signup (like Amazon) - ruclips.net/video/zecETlA00OA/видео.html
    👉 Django Microservices and how to handle multiple user types on different architectures - ruclips.net/video/X6fXTsioRl0/видео.html
    👉 Adding filtering, pagination & sorting & adding a search bar (with a Rest API) - ruclips.net/video/uwWmvGDHS-8/видео.html

    • @Krisler12
      @Krisler12 Год назад +1

      Thank you very much for such great Django lessons!
      Please create a new Django playlist or tutorial teaching us the following:
      How to implement a user groups management like in the army grades (soldier, captain, lieutenant, governor and so on) each of them with different rights in general and over the other users (like banning permanent, temporary, blocking others rights, editing or viewing their own posts or the others and so on).
      Second, it must be a like system for posts and for comments to that posts. The like system is somehow like the one from Facebook but not the same. It should be one just for voting up, one for voting down, one for spam, one for hate, and one for coins.
      Some categories of users are able to make posts that can be viewed only if the other categories of users give a number of coins while voting that article else they can't read it.
      Only some categories of users can vote down (e.g. those that have enough number of coins).
      Any user can convert a given number of votes up (e.g. 100) into coins.
      Users are automatically upgraded or downgraded from one category to another according on the totally number of coins they have.
      Down votes are discounted from the up votes and if there are not any more up votes then coins are converted back into up votes and after that they are discounted because of down votes and that user category downgraded accordingly. If there aren't any coins anymore then that users records negative points and those are discounted while they receive up votes.
      Any user can be also banned for a period of time (shorter or longer) if they reach any given number of negative points.
      If any user post reach any given number of spam votes for their post or comment then that post or comment is moved to a hidden spam folder for being deleted by a higher category of users like moderators or admin or to be marked as not spam. Also after any given number of posts or comments marked as spam that user can be banned temporary or permanently.
      The same for hate except that the post should not be deleted because it is not spam.
      Any given category of users are able to give any amount of votes.
      e.g. soldier or beginner just one, higher categories are able to give higher number of votes of any kind and so on.
      Please do this in Django. Please.
      Thank you so much in advance!

  • @TomAinsworth94
    @TomAinsworth94 2 года назад +8

    This is an amazing video thank you so much for all of the detail. I’ve been searching all over the django docs and stackoverflow for days, and this is the only video I’ve found that really makes sense of how to implement groups properly. Thanks a lot!

  • @georgesmith3022
    @georgesmith3022 2 года назад +6

    The most detailed video on permissions in django. Congratulations. I wish all the videos were in English

  • @PRATIK-v2l
    @PRATIK-v2l 2 месяца назад +1

    Thankyou so much for making this video. I am a new django intern in a company. This video helped me a lot to understand the project.

  • @aliaskarisakov1147
    @aliaskarisakov1147 21 день назад +1

    You are an angel, thank you very much

  • @kaviarasan4986
    @kaviarasan4986 2 года назад +3

    Great work, Great explanation,Must watch video to learn about groups&permissions in & out

  • @ashrayshiva9484
    @ashrayshiva9484 2 года назад

    Best video in depth so far regarding Django Groups and Permissions

  • @prabhatmishra8946
    @prabhatmishra8946 3 года назад +2

    Bhot shi explain kr rhe ho

    • @PriyanshuGuptaOfficial
      @PriyanshuGuptaOfficial  3 года назад +1

      Thanks bhai ....... do share with your friends who are working on django development or want to learn django webdevelopment ........ this series will definitely help them because all these topic that I am covering are not covered or explained in such depth in any course available even paid ones ........All what I have learned is by digging deep into django’s structure and by manually performing all testcases

  • @manasdewari
    @manasdewari Год назад +1

    Thank You for explaining beautifully and depth information.

  • @gselan72
    @gselan72 3 года назад +4

    Actually its a very good video, wished the rest of your other videos was in english as well. Thank you

    • @PriyanshuGuptaOfficial
      @PriyanshuGuptaOfficial  3 года назад

      Thank you. Will make rest videos in english as well. If you have custom user model and using AbstractBaseUser then inherit PermissionsMixin class as well.(check my user model in code)

  • @7999rahul
    @7999rahul Год назад +1

    Excellent explanation. Very much appreciate your hard work.

  • @jitendrajangir8502
    @jitendrajangir8502 3 года назад +2

    Good work bro ....really helpful sessions u r providing free of cost ....

  • @nagercoilgamer9484
    @nagercoilgamer9484 2 года назад +2

    Thanks for this wonderful knowledge transfer and great explanation😊

  • @zorojuro5106
    @zorojuro5106 3 года назад +2

    best tutorial for permissions and groups

  • @haletawha
    @haletawha Год назад +1

    Great tutorial I have ever watched. Keep it up.

  • @michaelofosu5233
    @michaelofosu5233 Год назад +1

    The best so far

  • @tanveermahmood9422
    @tanveermahmood9422 Год назад +1

    good job. thanks from Pakistan

  • @yuvraajlimbole2442
    @yuvraajlimbole2442 3 года назад +2

    Great job dude... very helpful

  • @sadiayeasmin3346
    @sadiayeasmin3346 2 года назад +1

    great work..... kindly make more of these videos......

  • @noblessetech
    @noblessetech 2 года назад +1

    Amazing , thank you for amazing video.

  • @mett1692
    @mett1692 11 месяцев назад +1

    amazing tutorial! thnak you !

  • @rajeshsenapati6358
    @rajeshsenapati6358 3 года назад +5

    Hi you doing well. As per this video You told like CMS, where a teacher group can add student and admin group can add teacher and student both and student only can see his profile then how I'll give permission to them?

  • @joshuaedward6893
    @joshuaedward6893 2 года назад +1

    Love the video, keep up the good work

  • @prabhatmishra8946
    @prabhatmishra8946 3 года назад +2

    Great job bhai

  • @nquanta1548
    @nquanta1548 2 года назад +2

    Nice tutorial bro :)

  • @sumansunuwar1540
    @sumansunuwar1540 3 года назад +3

    hi priyanshu , you have really made these things so easy i appreciate your work very much...
    i have a question , why does media file gets stored in the file folder not in data base , how do we store media files in the production level ????

    • @PriyanshuGuptaOfficial
      @PriyanshuGuptaOfficial  3 года назад

      Media files itself cant be stored in database, only the link where they are stored will get stored in db, for handling media files in production you will have to use s3 bucket or have to store them directly in server.
      Checkout these videos for help - ruclips.net/video/jFFAGdBtrRc/видео.html

  • @ismailhasansarker3733
    @ismailhasansarker3733 2 года назад

    Amazing explanations 👌👌 Thanks a lot.

  • @DineshKumar-jt5tr
    @DineshKumar-jt5tr Год назад

    tq for doing this in english sir

  • @Prince-wv8nm
    @Prince-wv8nm 2 года назад +2

    Got it 👌

  • @ellaidhurai602
    @ellaidhurai602 Год назад +1

    need more videos in django

  • @bhanudixit6454
    @bhanudixit6454 Год назад +1

    Hey Priyanshu Gupta, You did mention that the code repo will be provided for this specific video, but i am not able to find the code link, can you please help me with it.
    I wanted to view the model structure here for user_groups and user_permissions , the intermediary tables for users, permissions and groups.
    Thanks in advance.

  • @zahidulislam7977
    @zahidulislam7977 2 года назад +1

    Hi,
    This is from Bangladesh. This is really great!!!!!
    Can you suggest me for the below question?
    "How can I assign permissions to a specific group from a custom template?"

  • @zorojuro5106
    @zorojuro5106 3 года назад +2

    thanks again for this amazing tutorial. bro can u put the link of the repo please...

  • @pankajrathore9599
    @pankajrathore9599 3 года назад +2

    Perfect, 👍🏻👍🏻. I want to see the whole project code, can you please share this project git URL.

    • @PriyanshuGuptaOfficial
      @PriyanshuGuptaOfficial  3 года назад +2

      Thanks and link for GitHub repo: github.com/priyanshu2015/MasteringDjango

  • @rokibulhaque1673
    @rokibulhaque1673 Год назад

    Do you have any tutorial on putting django on production using IIS.

  • @AliHassan-wc6nb
    @AliHassan-wc6nb Год назад

    Hi Priyanshu, one aspect is missing. "Edit your own record". Not every record on a permitted model!

  • @mcaddit6802
    @mcaddit6802 2 года назад

    Please make full coding video

  • @saminrahman5165
    @saminrahman5165 Год назад

    i humblely request to add a sub-title in english or make the video in english

  • @rahul10kumawat25
    @rahul10kumawat25 3 года назад

    Bhai ek video Django channels pr BNA

  • @sagartiwari3841
    @sagartiwari3841 2 года назад

    how can i give permission to admin when i created a custom admin panel

  • @thierrykeller667
    @thierrykeller667 2 года назад

    could you let the github link for the explain project code

  • @EWCS_Deepak
    @EWCS_Deepak 3 месяца назад +1

    can you provide the github source code link

  • @mdmamun-vp9xj
    @mdmamun-vp9xj 3 года назад

    Without admin site how to set permission

  • @wilmerferneycubidesporras7774
    @wilmerferneycubidesporras7774 3 года назад

    could you add subtitles pls?

  • @_ShrutiNahar
    @_ShrutiNahar 2 года назад

    can you please share this code

  • @emmanueletentuk8265
    @emmanueletentuk8265 2 года назад

    Can we get the github link?

  • @aamir6586
    @aamir6586 Год назад

    source code bhi put kardeta

  • @asimraza5728
    @asimraza5728 3 года назад

    bro github link