Thanks David, it’s a shame really. I’m not saying my content is good, but I just hope it’s better than any paid content. Don’t pay for learning - just ask if you need anything
Pabor, and the best thing is - we have barely started! I can think of another 100 tutorials! I can hardly believe it myself how little Django content is out there! Even worse people pay for it! As per normal just ask if you need or would like to see anything. The blog series. I think I have got to that point I need to refactor the code and tidy up so we can move it to the next level. I will spend time tidying the code then will do the deploy.
@@veryacademy one thing you can add to the Blog series is file upload validators(jpg,jpeg,png)that prevents users from uploading wrong files. There's a ton of things Django is apparently used for, and just a few on TH-cam. Django is the best thing that happened to Python.
Sure, I did give a preview or small example in the first video of the image api series. But, like you said so much more can be done. I will build a whole tutorial on it.
Hi, thanks a lot for this video! I have a question, we saw how to restrict edit access to a group of users to a certain model. But what if we want to restrict edit access within that model to only the entries that the single user has inserted previously (so each user can only edit their own entries)? Right know if I'm user A and I'm in the same group as user B, I can still access the edit URL and change user B's entries as we are in the same group. Thanks!
Thanks zander !! One question though , can't we use the @permission_required function decorator in corporate with method decorator over class or dispatch()
Is it considered unsafe to put stuff like {% if user.is_authenticated %} and {% if user.has_permission %} etc. in the template to show/hide things that should/shouldn't be seen?
Hi! can you explain me why you have two put UserAccessMixin and "self" insed the super()? I guess that this is to reference the class you inherit from, right? But with that super() where are you pointing at to?
Hi , I used UserAcessMixin , and how when im starting ReactJS - frontend part , I want to make API calls , but I got error too : ,,many redirection,, known as ,,redirection loop,,. I think that problem is in redirect_field_name with value of next, bcs I see that in console mentiond. Does anyone have solution to this or just to point me to right direction. Thank you
Very nice.. but why "books.change_books"? I suppose is the model name, but I try here, it doesn't work... chat gpt says that it is needed the app name, and permission.. Could you elaborate on that? THanx
It seems the repo on github is not updated to include the UpdateView (BookEditView) nor the PermissionRequiredMixin (UserAccessMixin). Could you please upload them? Great series otherwise, it's exactly what I was hoping to find!
Great tip on setting up redirects to 404 for security, definitely goes into my app
Glad it was helpful!
perfect - thanks for making this and the CBV series :) here's to 20 21!
your content is great the best and most professional django source on youtube
Thanks David, it’s a shame really. I’m not saying my content is good, but I just hope it’s better than any paid content. Don’t pay for learning - just ask if you need anything
Thanks a lot, you have saved my day, now I need permission according to field value.
another amazing tutorial, excellent work Zander!
Great. Another one I've been waiting for. I haven't seen this in any other django series on TH-cam.
Pabor, and the best thing is - we have barely started! I can think of another 100 tutorials! I can hardly believe it myself how little Django content is out there! Even worse people pay for it! As per normal just ask if you need or would like to see anything. The blog series. I think I have got to that point I need to refactor the code and tidy up so we can move it to the next level. I will spend time tidying the code then will do the deploy.
@@veryacademy one thing you can add to the Blog series is file upload validators(jpg,jpeg,png)that prevents users from uploading wrong files. There's a ton of things Django is apparently used for, and just a few on TH-cam. Django is the best thing that happened to Python.
Sure, I did give a preview or small example in the first video of the image api series. But, like you said so much more can be done. I will build a whole tutorial on it.
@@paborlouise319 can't agree more! especially in web development field 👏🏽
Thank you boss.... time 23:34==>> How to "Quick Fix"?...What extensions did you use?
really good tutorial
Glad you think so!
Thank you so much for this very valuable content indeed !!
Hi, thanks a lot for this video! I have a question, we saw how to restrict edit access to a group of users to a certain model. But what if we want to restrict edit access within that model to only the entries that the single user has inserted previously (so each user can only edit their own entries)? Right know if I'm user A and I'm in the same group as user B, I can still access the edit URL and change user B's entries as we are in the same group. Thanks!
Why not adding user id when inserting...
this video is the video to understand how to work with generic views with access control management .
very helpful, keep up the good work
Glad it helped, thank you and have a good day
Thanks zander !!
One question though , can't we use the @permission_required function decorator in corporate with method decorator over class or dispatch()
Is it considered unsafe to put stuff like {% if user.is_authenticated %} and {% if user.has_permission %} etc. in the template to show/hide things that should/shouldn't be seen?
Used correctly, it poses little threat. Remember that this is processed at the back end.
@@veryacademy cool, thanks for the reply. Your channel has been the most valuable to me by far when it comes to learning Django piece by piece :)
this is really great, i'm pritty good at django rest framework but i need to be better what do you think i can do to improve my?
Just keep reading and building seems like the only way
@@veryacademy yeah that’s what I’m doing
800 mark! Going good 👍🏼
Only another 999200 to go ;) - just recording the React Chatroom with Django back-end + deploying on Heroku - be up in about 2 hours
@@veryacademy haha! Very soon very soon 🤓... And will be waiting for the other one. Thanks🙏🏼
@@veryacademy Not an issue, we can wait and please take care.
Hi! can you explain me why you have two put UserAccessMixin and "self" insed the super()? I guess that this is to reference the class you inherit from, right? But with that super() where are you pointing at to?
after some investigation a found the answer. Thanks anyway!
Thank you a lot
Glad it helped
Hi , I used UserAcessMixin , and how when im starting ReactJS - frontend part , I want to make API calls , but I got error too : ,,many redirection,, known as ,,redirection loop,,. I think that problem is in redirect_field_name with value of next, bcs I see that in console mentiond. Does anyone have solution to this or just to point me to right direction. Thank you
Nice !
Very nice.. but why "books.change_books"? I suppose is the model name, but I try here, it doesn't work... chat gpt says that it is needed the app name, and permission.. Could you elaborate on that? THanx
I'm I right in thinking that the custom mixin removes the need to use the LoginRequiredMixin?
Sorry - I cant remember what is in this tutorial - but you can indeed create a custom mixin to do that.
It seems the repo on github is not updated to include the UpdateView (BookEditView) nor the PermissionRequiredMixin (UserAccessMixin). Could you please upload them? Great series otherwise, it's exactly what I was hoping to find!
Hi Anthony, I am really sorry about this!
PERFECT PERFECT PERFECT
Does this work with an all-auth based login system?
You can use permissions along side all-auth
Thanks!
Welcome!
This is really awesome, but is there a way to change the permissions of the groups in the code and not the admin panel
See if this is useful cheat.readthedocs.io/en/latest/django/permissions.html
Great video
What extension are you using for the python intellisense
Just called Python and Django
How to restrict django user to edit others user post ?
You could simply add in the model the author of the post. Then you could match the user to the post so that only the owner of the post can edit.
@@veryacademy how to add in model? Can please you give any link or tutorial?
A+
If you're familiar with django, make views as functions, it's simpler and more practical.