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

Unable to render/access media files when running on apache2 server

Open likhit-vivek opened this issue 4 years ago • 0 comments

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:

  1. Deploy django project to AWS
  2. Setup apache2 to run the django project in background
  3. Access the website using public DNS of the instance
  4. 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.

likhit-vivek avatar May 26 '21 12:05 likhit-vivek