开发者

Is it necessary to fill action attribute in django template form if using Generic View

I am using django Generic views which straigt way loads the create form. I have seen that even if i don't enter 开发者_Python百科anything in template form action attribute , the data still gets in database.

So i want to know that how does django know show to enter stuff in database


POSTing to the same URL does not require the action attribute to be specified, and omitting it altogether is the best solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜