Error 404 when trying to install userscripts
Closed this issue · 2 comments
Hunter16g commented
It seems I can't install any of the userscripts apart from Overdrive search, I get a 404 error for http://localhost/userscript/localhost/static/js/jquery.noty.packaged.min.js
faircopy commented
This looks like you've set USERSCRIPT_WM_ROOT = 'http://localhost/userscript/localhost'
in settings.py
, resulting in the 10th line of the generated userscript file being:
// @require http://localhost/userscript/localhost/static/js/jquery.noty.packaged.min.js
I'm assuming you're hosting WhatManager under http://localhost. If this is the case, the above line should be:
// @require http://localhost/static/js/jquery.noty.packaged.min.js
To fix:
- Stop webserver (Apache)
- Modify
settings.py
:USERSCRIPT_WM_ROOT = 'http://localhost'
- Start webserver
- Install userscript
Hunter16g commented
The line was indeed incorrect, I didn't put the http:// (just 'localhost'). Thank you !