monim67 / django-bootstrap-datepicker-plus

Bootstrap3/Bootstrap4/Bootstrap5 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django >= 2.0
https://pypi.python.org/pypi/django-bootstrap-datepicker-plus
MIT License
223 stars 61 forks source link

form.media was not loaded? #91

Closed RichardWoj closed 1 year ago

RichardWoj commented 1 year ago

Describe the problem I followed the walkthrough tutorial to implement the pickerdate widget on a date field. Unfortunately when the page is rendered, I have a message displayed closed to the field saying "form.media was not loaded, did you forget to add it to template? This message is only visible when DEBUG=True"

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Picking a date

Console errors

Paste-bin The page is showing up but the date-picker calendar is not. The paste-bin link of the HTML source of the page is http://...

Setup Information (please complete the following information):

[x] I have followed the configuration instructions and checked out the common error troubleshooting page.

screenshot
monim67 commented 1 year ago

This is a validation message pointing out what you've missed while following the tutorial. Compare your template with with walkthrough template and add form media into your template, this message will go away.