# django-file-download
Django File Download
## Installation
```shell
pip install django-file-download
```
## Urls.py
```python
from django.urls import include, re_path
urlpatterns = [
re_path(r'^f/', include('django_file_download.urls', namespace='django_file_download')),
]
```
or
```python
from django.urls import re_path
from django_file_download import views as file_views
urlpatterns = [
re_path(r'^download$', file_views.file_download, name='file_download'),
]
```
## Settings.py
```python
INSTALLED_APPS = (
...
'django_file_download',
...
)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/django-xxx/django-file-download",
"name": "django-file-download",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Django File Download",
"author": "Hackathon",
"author_email": "kimi.huang@brightcells.com",
"download_url": "https://files.pythonhosted.org/packages/64/2a/181f0040b0734370cbb4a450f909eb410feb7b8d44a4abbccb89773eac9c/django-file-download-1.0.3.tar.gz",
"platform": null,
"description": "# django-file-download\nDjango File Download\n\n## Installation\n```shell\npip install django-file-download\n```\n\n## Urls.py\n```python\nfrom django.urls import include, re_path\n\nurlpatterns = [\n re_path(r'^f/', include('django_file_download.urls', namespace='django_file_download')),\n]\n```\nor\n```python\nfrom django.urls import re_path\nfrom django_file_download import views as file_views\n\nurlpatterns = [\n re_path(r'^download$', file_views.file_download, name='file_download'),\n]\n```\n\n## Settings.py\n```python\nINSTALLED_APPS = (\n ...\n 'django_file_download',\n ...\n)\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Django File Download",
"version": "1.0.3",
"split_keywords": [
"django",
"file",
"download"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a243f0c8e85efad92fdb9a945b33ecd08c0929b965774d2fa9fd2dab094a428",
"md5": "9b3f8a1fcda5f99914fe38c66c380391",
"sha256": "c8394f3dd131f7aa877f2757df4234bbdd03273bd208182b586d05921e864160"
},
"downloads": -1,
"filename": "django_file_download-1.0.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "9b3f8a1fcda5f99914fe38c66c380391",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4005,
"upload_time": "2023-02-06T09:40:36",
"upload_time_iso_8601": "2023-02-06T09:40:36.012336Z",
"url": "https://files.pythonhosted.org/packages/9a/24/3f0c8e85efad92fdb9a945b33ecd08c0929b965774d2fa9fd2dab094a428/django_file_download-1.0.3-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "642a181f0040b0734370cbb4a450f909eb410feb7b8d44a4abbccb89773eac9c",
"md5": "69ed78e8160d32c058c74ead4022b5cc",
"sha256": "8729c0d7bc2125b066f000f80ee2907abbc16e57aad0b6740b373b5f5229ff80"
},
"downloads": -1,
"filename": "django-file-download-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "69ed78e8160d32c058c74ead4022b5cc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2996,
"upload_time": "2023-02-06T09:40:38",
"upload_time_iso_8601": "2023-02-06T09:40:38.419342Z",
"url": "https://files.pythonhosted.org/packages/64/2a/181f0040b0734370cbb4a450f909eb410feb7b8d44a4abbccb89773eac9c/django-file-download-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-06 09:40:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "django-xxx",
"github_project": "django-file-download",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-file-download"
}