[Django APP] Django-import-export
[install]
pip install Django-import-export
INSTALL_APP = [
...
'import_export',
...
]
admin.py
from import_export.admin import ImportExportModelAdmin
from . import models
class LottoAdmin(ImportExportModelAdmin):
list_display = ('id', 'round', 'date', 'lotto1', 'lotto2', 'lotto3', 'lotto4', 'lotto5', 'lotto6', 'lotto7')
list_display_links = ['round']
list_per_page = 10
댓글
댓글 쓰기