admin(22)
-
Django admin 위치
파이썬 설치위치\Lib\site-packages\django\contrib\admin
2021.03.27 -
Django admin change_list.html 구조
change_list.html base_site.html base.html nav_sidebar.html search_form.html pagination.html
2021.03.27 -
Django Admin form 데이터
original {% extends 'admin/change_form.html' %} {% load ocr_filters %} {% block after_related_objects %} {% endblock%}
2021.03.04 -
Django admin reverse
Reversing admin URLs in Django | en.proft.me Reversing admin URLs in Django | en.proft.me Short note about reversing admin URLs in Django. en.proft.me
2021.03.03 -
Django Admin 에러
데이터 타입이 IntergerField인데, 값을 강제로 ''으로 셋팅하여 생긴 문제 값을 null로 셋팅하면 해결됨 Django Version:3.1.6 Exception Type:IndexError Exception Value: string index out of range Exception Location:C:\Users\baris\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\numberformat.py, line 57, in format
2021.02.21 -
Django Admin change_form.html에 버튼 추가 및 저장시 custom 작업 수행
{% block submit_buttons_bottom %} {{ block.super }} {% endblock %} def response_change(self, request, obj): if "_gotoTrainedBoxes" in request.POST or "_gotoTrainedBoxes(include Image)" in request.POST : if "_gotoTrainedBoxes(include Image)" in request.POST : Trained_Image.createImageData(obj) opts = self.model._meta msg = format_html('The Trained_Image “{}” was changed successfully.', obj.id) se..
2021.02.12