hello_world reverse 오류 문제
354
작성한 질문수 4
강의 재밌게 잘 따라하면서 배우고 있습니다. 늘 감사합니다.
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
안녕하세요 혹시 해결을 하셨을지 모르겠지만 해당 부분 소스 코드 공유 드립니다.
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'
강의에 나왔던 js 파일이 깃허브에 없습니다
1
79
1
모바일 디버깅, 반응형 레이아웃 4분48초 질문
0
57
1
decorator 관련질문입니다.
0
63
1
PasswordChangeView
0
104
2
로그아웃뷰 작동 관련 (2025년 3월)
1
138
1
실행에러질문
0
159
1
@login_required 데코레이터 사용시 리다이렉트는 어디서 참조하여 설정을 하는걸까요?
0
116
1
CacheBackend 관련 에러
0
182
1
21강 CreateView를 통한 회원가입 구현 질문
0
326
1
53강 disallowedhost
0
347
2
502 Bad Gateway
0
474
0
mariadb 접근권한 오류
0
546
1
logout 후 빈 화면으로 이동합니다 ㅠㅠ
0
462
2
로그아웃 후 빈 화면으로 이동
0
334
1
서버 운영 관련 질문 드립니다.(Unable to retirve...)
0
233
1
static/base.css파일을 인식을 못합니다
0
383
1
안녕하세요 19강 디버깅 설정 질문있습니다.
0
292
1
프로필 update편 질문있습니다.
0
380
1
수업질문
0
395
1
COOP error
0
531
1
61강 Dockerfile error
0
598
1
static안에 base.css 에서 정의한 클래스가 적용되지 않습니다.
0
492
1
static 파일 중 jpg 파일만 로드 불가
0
419
1
58강 static 파일 적용 안됨
0
549
1





