A Django app to conduct Web-based directory-tree.
Project description
# Directory-Tree
Directory Tree is a Django app to see all directory in media folder.
Detailed documentation is in the “docs” directory.
Quick start
Add “directory_tree” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'directory_tree', ]
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')
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)
Include the directorty tree URLconf in your project urls.py like this:
path('directory_tree/', include('directory_tree.urls')),
Start the development server and visit http://127.0.0.1:8000/admin/ to login by admin user
Visit http://127.0.0.1:8000/directory_tree/ to participate in the directory tree.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-directory-tree-1.2.tar.gz
(10.8 kB
view hashes)
Close
Hashes for django-directory-tree-1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5ec23815f09ebb2a60f7baf7b75532c15f371b0595cffba61890d58ee9268f5 |
|
MD5 | 6d21e3d6d9ccc7514d7b0be29ee1e244 |
|
BLAKE2b-256 | 0822129fdb3345bd7f7b20d17032ec06b63fd092da74b85c740c059f128a6f61 |