Route¶
- class djmvc.route.Route[source]¶
Bases:
objectBase routing node: URL names, paths, and reverse lookups.
Controllers and views subclass
Route. Each node contributes acodenamesegment to the nested URL namespace.- property title¶
Human-readable label, usually derived from the class name.
- property codename¶
URL namespace segment derived from the class name (lowercase).
- property urlpath¶
Path segment appended under the parent controller.
- property urlname¶
Short URL name used as the final component of
urlfullname.
- property urlpatterns¶
Django URL patterns for this node and its children.
- property urlfullname¶
Fully qualified URL name (
parent:child:view).
- property url¶
Resolved URL path for this route (no arguments).
- reverse(*args, **kwargs)[source]¶
Reverse
urlfullnamewith positional or keyword arguments.