Django Dirbrowser
Django app for browse a local server direcotry.
This app is user to give acces to a local directory and still using django auth, django templates and django middleware.
Requires django version 1.3 or greater.
Installation
Install or add django-dirbrowser to your Python path.
pip install django-dirbrowser
or with wasy_intall
easy_install django-dirbrowser
Usage
Add dirbrowser to your INSTALLED_APPS setting.
Add dirbrowse serve to your project’s urls.py file:
from dirbrowser.views import serve (r'^browse/(?P<path>.*)$', serve, {'document_root': CURRENT_DIR}),Or personalize it on your own views:
from dirbrowser.views import serve def mybrowser(reques, path): extra_context = {.. some extra vars ..} return serve(request, document_root='path_to_my_root_dir', template="custom_template.html", extra_context=extra_context)
The serve view accepts the parameters:
document_root : Path to the root directory to serve
template : Template used to show index page (if show_indexes is True)
extra_context : Extra context to the template
show_indexes : if True show the directory index page. Default is False
Metadata
Release files for django-dirbrowser 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-dirbrowser-0.0.3.tar.gz | 5.7 kB | Without provenance | Details for django-dirbrowser-0.0.3.tar.gz |
Release files / django-dirbrowser-0.0.3.tar.gz
| Download URL | django-dirbrowser-0.0.3.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b753c4467d713dd72c6a6af82c857a967ab4eff374c894f1a7f40a48da035ea
|
|
BLAKE2b-256 checksum How to use checksums |
7fdf68c212285b07fdaf6acb005734fc68d68e64de83237112c2111b8f272384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-dirbrowser 0.0.3
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.