1
장고에서 URL 역순으로 조회하는 데 약간의 문제가 있습니다. URL의장고 역방향 URL 조회 템플릿 오류
<form action="{% url 'blog:save' post.slug %}" method="post">
: :보기에서
url(r'^post/(?P<slug>\w+)/save/$', views.save, name='save'),
: 템플릿에서
는def save(request, slug):
return HttpResponse("Not Saved.")
오류가 나는군요 :
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'save' with arguments '(u'',)' and keyword arguments '{}' not found.
감사합니다! 그거였다. – ejk314