Django Permissions | Model Level | Views and Templates

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

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

  • @Failrule
    @Failrule Год назад +5

    Absolutely most complete detailed and well explained course ever

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

    I started learning web development myself, my stack is .NET Core + React but I really like your video tutorials. Please more video tutorials about JS. Thank you sir!

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

    Great series ! You are a very great teacher.

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

    great piece. it was helpful watching. thankyou

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

    lot of great content, really love it... one minor comment though
    Can you use actual data for example for users (John, Ali, David) product (laptop, shoes, ...etc)
    I think this will help us lot more :) thanks lot for the great content

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

      Thank you, you are totally right of course. I will try to in the future.

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

    thanks for the vid
    but im confused, is there a difference between can add project and can add new project?? of is it simply to show us an option

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

    Great tutorials! Keep it up!!!!

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

    Hey man great video! Quick question, I'm trying to create a moderator in Django. In your opinion, which method of permissions gives you more freedom to alter how those permissions work? I was thinking of using permissions decorators but the PermissionsRequiredMixin seems like a more concise way I could implement this feature. Any thoughts are greatly appreciated!

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

    Amazing content

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

    Hey Man, I know you are very busy and all but can you do a tutorial on how to create the fixtures like the ones we used for the ECommerce 2. Maybe from excel to how it became a Json.

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

    mate why didn't we use custom decorator to make the permissions, we can implement any idea with the decorator .
    for example we can list the the projects for the users who have age between 10-20
    same for checking the permissions
    same for checking the groups

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

      I would assume that I was just trying to keep it simple or just building on from the previous knowledge. Sometimes I overthink it and try to keep it what I think would be easier to understand initially, but as you and many point out, there are many times where more realistic approached would be preferable.

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

    Thank you very much for this tutorial. I want to ask how to assign these permissions in dynamic way. Here I mean having all permissions list and assign an/or revoke to a specific user at any time for example when the system is live. Thanks

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

      Hi Eugene. Set permissions on certain actions. I did share an approach in the last tutorial using Django signals. But I realise you’re probably thinking a little bigger here. Once you determine what actions should create or remove permissions we simple use the functions provided to perform the actions. I can explore and be a little more expansive in an additional tutorial for this series.

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

    it's interesting how "perms" object is available into template, it was passed by django automatically or you passed it? cannot find it in code

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

    Thank u zander😀😀

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

    Thank you

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

    please do a video where u code about
    -Time on site
    -Pages per visit.
    -Bounce rate
    -Returning visitors
    for admin analytics reports i am new to django and this things are advance

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

    I dont understand when you added new permissions and named it "can add new project", how did django know that this permission is referring to creating new projects?

    • @olamigokephilip9402
      @olamigokephilip9402 6 месяцев назад

      It doesn't have to be explicitly stated again. Think of can_add_new_project like a constant created with a check function in the View.
      In Django, permissions do not require any more than that configuration. The permission name acts as a tag /identifier within your application. This tag doesn't define any specific action. It's the view logic that enforces that

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

    :3