django-bootstrap-datepicker-plus
django-bootstrap-datepicker-plus copied to clipboard
Unable to render/access media files when running on apache2 server
Describe the bug
The plugin worked fine when developing the django website locally, but after deploying it to aws and running it using apache2 server instead of the default django server, media files like datepicker-widget.js and datepicker-widget.css are all returning 404 (Not found) error.
To Reproduce Steps to reproduce the behavior:
- Deploy django project to AWS
- Setup apache2 to run the django project in background
- Access the website using public DNS of the instance
- See error
Expected behavior All the necessary css and js should be accessible even when running on apache2
Screenshots If applicable, add screenshots to help explain your problem.
Setup Information (please complete the following information):
- OS: Ubuntu 18.04
- Browser chrome
- Browser version
- Python version 3.6.9
- Django version 3.2
- Bootstrap version 4
- jQuery version
I tried giving full rwx access to apache2 for the folder bootstrap_datepicker_plus which is inside my virtual env and contains the css and js files but it didn't work
I don't know what else I need to change for this to work. Please help.