Hi Dr Chuck! Why you have not used reverse_lazy() for the u3? 11:40
@maremagnumHojarasca8 ай бұрын
Your videos are pure gold, thanks so much!
@SisiraSomaratne4 жыл бұрын
Thank you for explaining it. But what is the difference between reverse and reverse_lazy ?
@mehmedkukavica8076 Жыл бұрын
reverse_lazy()¶ A lazily evaluated version of reverse(). reverse_lazy(viewname, urlconf=None, args=None, kwargs=None, current_app=None)¶ It is useful for when you need to use a URL reversal before your project’s URLConf is loaded. Some common cases where this function is necessary are: providing a reversed URL as the url attribute of a generic class-based view. providing a reversed URL to a decorator (such as the login_url argument for the django.contrib.auth.decorators.permission_required() decorator). providing a reversed URL as a default value for a parameter in a function’s signature.
@Gauravsharma-gs9dt4 жыл бұрын
best resource to learn this confusing url resolver concept.. keep it up
@O304954 жыл бұрын
That explained sooo much, Ive been having this problem for months and no was able to explain it properly like you
@juniornicolodi2 жыл бұрын
great content, you are a greate teacher!
@tulczi4 жыл бұрын
that's a great explanation, really, thanks :)
@durandekamga22983 жыл бұрын
Great explaination !!!
@ImmediatelyLeaveYT2 жыл бұрын
thank you so much!
@KevinTempelx4 жыл бұрын
Thanks!
@sk7w4tch3r4 жыл бұрын
thank you :)
@vishalmishra19374 жыл бұрын
reverse vs reverse_lazy
@mehmedkukavica8076 Жыл бұрын
Great, but nothing intuitive. Pure technology. Thank you, professor, for your effort and for making it possible for us to learn much more easily than having to study documentation. I modified the second.html code a bit and it works like crazy. go to gview dogs list (x2 from context)