I need help integrating a datetime picker into my template. Even after following this tutorial , I am unable to locate the CSS and JS files in Django.
Code snippet from the template:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<script src="js/bootstrap-datetimepicker.min.js"></script>
Error message displayed:
Not Found: /js/bootstrap-datetimepicker.min.js
Not Found: /css/bootstrap-datetimepicker.min.css
I have downloaded the entire bootstrap-datetime picker, created directories named css and js in my project tree, and added the necessary files as referenced by the links. However, I'm unsure about where exactly to include the CSS and JS files. So far, I've tried two options: my_app/templates/my_app/css or my_app/templates/css. Unfortunately, none of them were recognized by Django.