• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

hello_world reverse 오류 문제

21.12.25 22:06 작성 조회수 159

0

강의 재밌게 잘 따라하면서 배우고 있습니다. 늘 감사합니다. 

hello_world로 reverse 오류 문제가 꾸준히 지속되어서 질문 남깁니다. 

 

>>> 사라지지 않는 "hello_world" 오류

도커를 통해서 "django_container"를 running 시킨 후, 

생성된 사이트(158.247.216.60:9000/)에 가서 
계정을 생성하면 아래와 같이  hello_world로 reverse오류가 발생합니다 .

코드를 다시 검색해보아요. migration 부분 외에는 남겨진 "hello_world"는 없습니다. 

혹시 migration의 코드를 건드려야 사라지는 걸까요? 

 

깃허브의 코드 주소는 아래와 같습니다. 

https://github.com/JJingu/django_home_test04.git

 

 

답변 3

·

답변을 작성해보세요.

0

추가적으로 이미지를 다시 빌드해서 컨테이너를 만들면 문제없이 진행이 됩니다!

0

안녕하세요 혹시 해결을 하셨을지 모르겠지만 해당 부분 소스 코드 공유 드립니다.

 

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

coding corgi님의 프로필

coding corgi

2022.05.05

저도 궁금합니다. 답변 꼭 보시고 달아주세요 5개월전에 단 질문이네요..