Admin widget doesn't seem to include Media: 'Uncaught ReferenceError: recurrence is not defined'
I'm generally inexperienced with Django, so please forgive me if there is an obvious reason for this issue.
I'm using Django 2.0 and Python 3.6, which I know recurrence doesn't support as of now. But if there is a way to bypass this error, or if incoming updates are coming soon to fix this problem, it will be very helpful to know.
Now the error. It is a JavaScript error in the admin page, more specifically the RecurrenceWidget. The recurrence widget has an inline js that seeks to call recurrence:
<script type="text/javascript">recurrence.language_code ='en';new recurrence.widget.Widget('id_recurrences', {});</script>
But it fails, probably since the recurrence static files (i.e. recurrence/js/recurrence/js and recurrence/js/recurrence-widget/js are not included. Checking the admin HTML I could confirm that this is the case.
Looking through the source code, I saw that RecurrenceWidget defines a media attribute, but it seems that Django admin does not automatically include the media? In a form I would just do {{ form.media }}, but how does it work in admin? I'm not sure if this is me using Django-admin wrong, me configuring django-recurrence wrong, or a version conflict. Any help will be greatly appreciated.
Duplicate of #128