It broke how
main.py - Live INFO count!!! - Replit
A 500 internal server error means your server is experiencing an error when
/ is requested. Could you show use the error?
When rendering a template, it must be in
templates/file. It does not look like
thx one more thing i am trying to make a repl which e.g i wanna make slope and use the http:// thing put it in the code and it slope appears when you run how do i do that
150 cycles reward
Do you means put the slope game in a repl?
no that was and example
I am unsure of what you mean.
what code would i use to link a thing on the internet into a repl
Do you mean embed a site into yours?
like how swordbattle is linked onto this this
In that code the user is redirected to another url. To do that in flask, just import
flask and instead of returning a response, do:
return redirect(url, http_code)
you need to put the url in a string
here is an example:
from flask import Flask, redirect app = Flask(__name__) @app.route("/") def home(): return redirect("https://google.com") app.run(host="0.0.0.0")
I realized this post is only like 25% true but for the continuity of the thread I'll leave it here.
Try typing the
/ yourself. Probably what happened is that somehow you replaced the ASCII
/ with a unicode version and JS didn’t like that.
it is a invalid character
Oh my mistake. The quotes are your issue. Type the quotes yourself. When you copied them off of Ask you got the fancy unicode ones instead of the basic ASCII ones and Python doesn’t like that.