소스 검색

POST new movie to /

Benoît Hubert 7 년 전
부모
커밋
62bd96219e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      movies/templates/home.html

+ 1 - 1
movies/templates/home.html

@@ -2,7 +2,7 @@
   <title>MovieLib</title>
     <body>
       <h1>Your Movie list</h1>
-      <form method="POST">
+      <form method="POST" action="/">
         <input name="movie-title" id="input-new-movie" placeholder="Enter a movie title" />
         {% csrf_token %}
       </form>