https://github.com/lkiarest/django-simple-export
A simple app to export admin model list to an excel file
https://github.com/lkiarest/django-simple-export
Last synced: over 1 year ago
JSON representation
A simple app to export admin model list to an excel file
- Host: GitHub
- URL: https://github.com/lkiarest/django-simple-export
- Owner: lkiarest
- License: mit
- Created: 2018-06-20T08:15:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T08:43:04.000Z (almost 8 years ago)
- Last Synced: 2025-01-20T17:54:26.591Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=====
Admin Export
=====
Add export action in admin model list page.
Quick start
-----------
1. Install this package::
pip install django-simple-export
2. Add "admin_export" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'admin_export',
]
3. Include the polls URLconf in your project urls.py like this::
path('dae/', include('admin_export.urls')),
4. Add export annotation to your model in admin.py, for example::
from admin_export.deco import dae_export
@admin.register(YourModel)
@dae_export(YourModel)
class YourAdmin(admin.ModelAdmin):
# ...
5. Start the development server and visit http://127.0.0.1:8000/admin/,
then click to view the list of the model(you'll need the Admin app enabled).
6. There will be an 'Export' button in the page before 'Add' button.
click this button, current data list will be exported into a file.