Django 2.0에서 변경 된점 Cannot reverse a query once a slice has been taken. ListView에서 paginate_by를 추가하고 템플릿 파일에서 {{ object_list.last }}를 할 경우 위와 같은 에러 발생 AssertionErrorAssertionError: Cannot reorder a query once a slice has been taken. ListView에서 paginate_by와 ordering를 같이사용하고 템플릿 파일에서 {{ object_list.last }}를 할 경우 위와 같은 에러 발생 결론은 오더링 또는 필터된 쿼리셋을 템플릿에서 슬라이싱 할 경우 에러 발생 https://www.bugsnag.com/blog/djan..
어떠한 데이터든 간에 입력 데이터라고 한다면 장고 폼을 이용하여 유효성 검사를 해야 한다. HTML forms ... elements, a form must specify two things: where: the URL to which the data corresponding to the user's input should be returned how: the HTTP mehtod the data should be returned by Django's role in forms preparing and restructuring data to make it ready for rendering creating HTML forms for the data receiving and processing submitt..