Skip to main content

# Directory-Tree

Directory Tree is a Django app to see all directory in media folder.

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “directory_tree” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'directory_tree',
    ]
  2. Add MEDIA_URL and MEDIA_ROOT to your setting.py setting like this (Optional):

    BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    
    MEDIA_URL = '/media/'
    MEDIA_ROOT = str(BASE / 'media')
  3. Add media path in your project urls.py like this (Optional):

    from django.conf import settings
    from django.conf.urls.static import static
    
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  4. Option if you want to see file have in a database ? setting like this in setting.py:

    DIRECTORY_TREE_MODEL_USE = True # default False
    DIRECTORY_TREE_MODEL = {
        TABLE_NAME: [list_field],
    }
  5. Include the directorty tree URLconf in your project urls.py like this:

    path('directory_tree/', include('directory_tree.urls')),
  6. Start the development server and visit http://127.0.0.1:8000/admin/ to login by admin user

  7. Visit http://127.0.0.1:8000/directory_tree/ to participate in the directory tree.

Metadata

Release files for django-directory-tree 1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-directory-tree 1.7
File Size Uploaded Provenance Actions
django-directory-tree-1.7.tar.gz 15.1 kB Without provenance Details for django-directory-tree-1.7.tar.gz

Release files / django-directory-tree-1.7.tar.gz

Download URL django-directory-tree-1.7.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3c91c189f7a849eff8b1f7a49b1641b0fd9fd14dd1dd551bf452d248d6612fde
BLAKE2b-256 checksum
How to use checksums
fff54e41586718589dd426afb8ed2a6732f0b66a95dedebc53d2725b780d8ca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

Security for django-directory-tree 1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page