path(route,view, kwargs=None,name=None) - It returns an element for inclusion in urlpatterns.
where :-
The route argument should be a string or gettext_lazy() that contains a URL pattern. The string may contain angle brackets e.g. <username> to capture part of the URL and send it as a keyword argument to the view. The angle brackets may include a converter specification like the int part of <int:id> which limits the characters matched and may also change the type of the variable passed to the view. For example <int:id> matches a string of decimal digits and converts the value to an int.
The view argument is a view function or the result of as_view() for class-based views. It can also be an django.urls.include().
The kwargs argument allows you to pass additional arguments to the view function or method. It should be a dictionary.
name is used to perform URL reversing.
.png?h=d0c8e42e5422200623251497ac0d76eb)
.png?h=df2b27ff40737adcb6fc88d68fbdbd3b)
.png?h=68fd8ff07df33954f5c7ea65ed914faf)
.png?h=69de8888de6f16e3f64261fc664f9460)
.png?h=677805653e9d460660ce92f5af810b7c)
re_path(route,view, kwargs=None, name=None) - It returns an element for inclusion in urlpatterns.
Where,
The route argument should be a string or gettext_lazy() that contains a regular expression compatible with Python’s re module. Strings
typically use raw string syntax (r'') so that they can contain sequences like \d without the need to escape the backslash with another backslash. When a match is made, captured groups from the regular expression are passed to the view as named arguments if the groups are named, and as positional arguments otherwise. The values are passed as strings, without any type conversion.
Theview argument is a view function or the result of as_view() for class-based views. It can also be an django.urls.include().
The kwargs argument allows you to pass additional arguments to the view function or method.
name is used to perform URL reversing.
.png?h=803bc4b015f5bc783884cff10e7a4819)