There was a problem following the tutorial.

Asked 2 years ago, Updated 2 years ago, 49 views

https://rk.edu.pl/en/capturing-images-webcam-django-jpegcam/

I was following the tutorial on the page above.

Not Found: /main/cap/webcam.swf

This error has occurred. I think there was an error in the url setting in webcam.js, but I don't know exactly, so I wonder what the problem is.

The media settings on settings.py are like this.

MEDIA_URL='/media/'
MEDIA_ROOT= os.path.join(BASE_DIR, 'media')

I changed the code like this.

swf_url: 'media/jpegcam/webcam.swf', shutter_url : 'media/jpegcam/shutter.mp3',

Help me! ㅠ<

django

2022-09-21 21:00

1 Answers

The jpegcam has been moved to the link below.

https://github.com/jhuckaby/webcamjs

Also, the tutorial seems to be old. If it's for learning django, we recommend another tutorial (https://tutorial.djangogirls.org/ko/).

Because of the django version...I don't know if the codes in the tutorial will work.


2022-09-21 21:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.