简体   繁体   English

如何在django中添加一个Calendar可视化小部件来选择日期?

[英]How can I add in django a Calendar visual widget to select a date?

I am crrating a django application and I have the next question: How can I add, in a form in django, an icon or a widget that helps people to choose a date? 我正在为一个django应用程序而烦恼,我还有下一个问题:如何在django中添加一个帮助人们选择日期的图标或小部件? I mean, I don't want people to enter a date manually. 我的意思是,我不希望人们手动输入日期。 I want them to select a date by a click in a visual calendar. 我希望他们通过视觉日历中的点击选择日期。 How can I do it? 我该怎么做?

Thanks! 谢谢!

How about the jQuery date picker? jQuery日期选择器怎么样?

<script type="text/javascript" src="/media/jquery/development-bundle/ui/i18n/jquery.ui.datepicker-{{request.LANGUAGE_CODE}}.js"></script>

Another StackOverflow answer provides some relevant code snippets for integrating Django + jQuery Datepicker. 另一个StackOverflow答案提供了一些用于集成Django + jQuery Datepicker的相关代码片段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM