Class-based generic views¶
media_tree.contrib.views contains class-based generic views that
enable you to access
FileNode objects through public URLs. Please see below
for specific examples. Of course you can also extend the generic view classes to
create views that suit your specific requirements.
As with any public views, you may want to restrict the objects that should be
publicly visible by passing an appropriately filtered
implementing a view. For instance, you may not want users to see the internal
folder structure of your
FileNode objects, hence using a
with a QuerySet such as
FileNode.objects.all() would be a bad idea.