Skip to content
← Back to Community
For some reason, flask isn't working!
Profile icon
Code1Tech

Yesterday, I made a website using flask. But today when I went to edit, it said 'Internal server error.' And I thought my repl was broken. So I restored a previous version but it was still broken. Then I made a new repl called 'Flask is broken' and it wouldn't install the flask package. Please help me!
(Example is linked with 'flask IS broken')

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
k021c1233
Profile icon
MauricioMurill2
Profile icon
Code1Tech
Comments
hotnewtop
Profile icon
Coder100

Try deleting all your packager files and then manually installing flask again.

image
image

Profile icon
Code1Tech

I'll try.
@Coder100

Profile icon
Coder100
Profile icon
Code1Tech

It worked but I got this..

capture1
@Coder100

Profile icon
Code1Tech

And there is no error in my code, I checked.
@Coder100

Profile icon
Coder100

oh, create a new folder called templates and drag index.html into there. @Code1Tech

Profile icon
Coder100

nope, there isn't its a flask thing @Code1Tech

Profile icon
Coder100

also read this if you hate the templates folder for some reason (I do!) @Code1Tech

Profile icon
Code1Tech

oh i forgot about templates XD
@Coder100

Profile icon
Code1Tech

ok ty and it worked!
@Coder100

Profile icon
Coder100

yay!! Awesome! @Code1Tech

Profile icon
Code1Tech

Also if you want, you can take a look at my website!
https://Know-It-Code.code1tech.repl.co
@Coder100

Profile icon
Coder100
Profile icon
Coder100
Profile icon
Coder100

could use a bit more css lol @Code1Tech

Profile icon
Code1Tech

Idk how to use css LMAO
@Coder100

Profile icon
Coder100

ah, well ig you will learn soon! @Code1Tech