Bootstrap Datepicker Example

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:24:30

问题


I cannot seem to get the bootstrap datepicker from http://www.eyecon.ro/bootstrap-datepicker/ to work using the example from https://gist.github.com/maraujop/2812529.

The only thing I am unsure of is where to put the datepicker folder after downloading it? I put it in my static folder and while I get no errors the only thing that shows up on my form for a date field is a blank looking box next to the field but nothing comes up when pressing it.

This doesn't seem like it should be that hard but for whatever reason, this isn't working.

Any suggestions(something that works).

Thanks


回答1:


Take a look at django-bootstrap3-datetimepicker which you can install with pip and add to INSTALLED_APPS. Works very well for me.

There's an alternative listed in the docs for Bootstrap2, but I've not used it so can't comment on how well it works.



来源:https://stackoverflow.com/questions/16905170/bootstrap-datepicker-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!