{"id":23467605,"url":"https://github.com/askbot/django-directory","last_synced_at":"2025-04-14T12:33:37.202Z","repository":{"id":22711591,"uuid":"26055803","full_name":"ASKBOT/django-directory","owner":"ASKBOT","description":"Django app to list contents of the directory and download files.","archived":false,"fork":false,"pushed_at":"2023-10-29T23:20:22.000Z","size":33,"stargazers_count":9,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T01:50:32.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ASKBOT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-01T16:21:57.000Z","updated_at":"2024-01-16T11:42:37.000Z","dependencies_parsed_at":"2024-12-24T12:38:12.595Z","dependency_job_id":"2a409d61-9590-4725-93da-62f1935f1155","html_url":"https://github.com/ASKBOT/django-directory","commit_stats":{"total_commits":49,"total_committers":3,"mean_commits":"16.333333333333332","dds":"0.30612244897959184","last_synced_commit":"2bc92b71d79e3c3a73d498474e93d14d5be5fd18"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASKBOT%2Fdjango-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASKBOT%2Fdjango-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASKBOT%2Fdjango-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASKBOT%2Fdjango-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ASKBOT","download_url":"https://codeload.github.com/ASKBOT/django-directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248881933,"owners_count":21176945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-24T12:38:03.822Z","updated_at":"2025-04-14T12:33:37.173Z","avatar_url":"https://github.com/ASKBOT.png","language":"Python","readme":"A simple app\nfor Django 3.2.8 and Python 3.9.2\nthat allows listing and downloading files from a given directory,\nwhile controlling who can access the files.\n\nInstallation\n============\n`python manage.py migrate` is not required as there are no models.\n\nAdd to the `settings.py` file::\n\n    INSTALLED_APPS += ['directory']\n\n    DIRECTORY_DIRECTORY = '/path/to/dir'\n\nThat's the directory to be listed.\n\nAdd to the `urls.py` file the url entry, e.g.:\n\n    ('files/', include('directory.urls')),\n\nDependencies\n============\nIf setting `DIRECTORY_ACCESS_MODE` is set to `'use-perms'`, or (possibly) `'custom'`,\nthen this app will require `django.contrib.auth` installed in the project.\n\nConfiguration\n=============\n\nSetting `DIRECTORY_ACCESS_MODE`, can be one of: `'public'`, `'use-perms'`, `'custom'`,\nvalue `'public'` is default.\n\n* value `'public'` means that anyone can see the directory and download files.\n* `'use-perms'` means that django permission `'directory_read'` from `django.contrib.auth` will be checked\n* `'custom'` - means that function provided with `DIRECTORY_ACCESS_FUNCTION` will be called to check the permission\n\n`DIRECTORY_ACCESS_FUNCTION` - a function or python path to the custom permission checking function e.g. `'myapp.perms.check_get_backups_perm'`.\n\nThe function should accept parameter `request` and return a Boolean value - access granted if `True`.\n\n`DIRECTORY_TEMPLATE` - path to the template file for the directory listing. Default value\nis `'directory/list.html'`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskbot%2Fdjango-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskbot%2Fdjango-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskbot%2Fdjango-directory/lists"}