4 ms·
Nice! I am guessing you don't want to hard code the domain/hostname in script.js (line 40) ?
by lappet 10y ago
Nice! I am guessing you don't want to hard code the domain/hostname in script.js (line 40) ?
- alex_g 10y agoRight, it's just localhost right now, so I don't think it matters.
- lappet 10y agoBtw I am unable to get it working locally. I only see 404s. Do I need anything special to serve the static files?
- alex_g 10y agoHappy to help. The static files should only be accessed by opening index.html in your browser. From another user: "Don't go to localhost:5000/, like you might think. Open file://.../WikiQuiz/index.html as a file in Chrome. It will make ajax requests to localhost:5000"
- lappet 10y agoAh I see, thanks for the help. Now I see 500s even though I have installed both the nltk packages. Hmm.
- lappet 10y agoThe exception appears to be: <class 'TypeError'>, TypeError("a bytes-like object is required, not 'str'",),
- alex_g 10y agoTry reverting the changes from: https://github.com/alexgreene/WikiQuiz/commit/9696fe29b413a6dbcf85f03f0e373fa297c0b8db https://github.com/alexgreene/WikiQuiz/commit/9696fe29b413a6... Please report back if that worked or not with an Issue on the repo, so I can follow up with a fix. Thanks!