게시글
질문&답변
2022.09.12
hello_world reverse 오류 문제
추가적으로 이미지를 다시 빌드해서 컨테이너를 만들면 문제없이 진행이 됩니다!
- 0
- 3
- 239
질문&답변
2022.09.12
hello_world reverse 오류 문제
안녕하세요 혹시 해결을 하셨을지 모르겠지만 해당 부분 소스 코드 공유 드립니다. class AccountCreateView(CreateView): model = User form_class = UserCreationForm success_url = reverse_lazy('home') template_name = 'accountapp/create.html' class AccountDetailView(DetailView, MultipleObjectMixin): model = User context_object_name = 'target_user' template_name = 'accountapp/detail.html' paginate_by = 25 def get_context_data(self, kwargs): object_list = Article.objects.filter(writer=self.get_object()).order_by('-pk') return super(AccountDetailView, self).get_context_data(object_list=object_list, kwargs) @method_decorator(has_ownership, 'get')@method_decorator(has_ownership, 'post')class AccountUpdateView(UpdateView): model = User context_object_name = 'target_user' form_class = AccountUpdateForm success_url = reverse_lazy('home') template_name = 'accountapp/update.html' @method_decorator(has_ownership, 'get')@method_decorator(has_ownership, 'post')class AccountDeleteView(DeleteView): model = User context_object_name = 'target_user' success_url = reverse_lazy('accountapp:login') template_name = 'accountapp/delete.html'
- 0
- 3
- 239
질문&답변
2022.04.12
eslint를 설정하고 나니 온통 빨간줄이 뜨는데 어떻게 해야 하나요?
저도 해결되엇습니다 감사합니다!
- 3
- 4
- 4.4K