django-bootstrap-datepicker-plus icon indicating copy to clipboard operation
django-bootstrap-datepicker-plus copied to clipboard

Debug=False

Open JoSell95 opened this issue 6 years ago • 1 comments

Hello,

thank you for this great work. Everything works fine for me, when I have Debug=True in my settings.py. But when I change it to False the calender does not show up.

Thanks in advance.

JoSell95 avatar Feb 11 '19 11:02 JoSell95

Thanks for your information. This error has been reported many time before, this time you exactly pointed at the cause of it for the first time. I was having really hard time figuring out why it works for some and doesn't for some environments.

The problem is relating to the static files included in this package which are not served automatically by Django in production mode. You need to collect all static files to a single directory to serve them. Here is the fix.

monim67 avatar Feb 11 '19 11:02 monim67

From version 5.0.0 the asset files are served from jsdelivr CDN by default. So no need to worry about serving static files when DEBUG=False.

monim67 avatar Nov 12 '22 18:11 monim67