Why don’t I have webview and how to enable it?

image

image

hiya there! it might be helpful to supply us with your code so we can solve the problem. sending a code snippet or repl link would be okay.

thanks!

1 Like

I can throw it off, but I don’t have a webview on any repl.

ah, ok. have you set up a flask/django/etc server? if not, webview is only shown when there is a website to be displayed (like an html repl). you can follow a flask tutorial on youtube or use a template from replit.

hope this helped!

2 Likes

Set up flask, hit start, nothing but the console and shell

Are you sure it contains app.run(debug=False)?

1 Like

Lol what’s happening is that you haven’t run background.py to do so you need to add this to your main.py file:

import background

background.keep_alive()
2 Likes

On line 180 you have this:

import background background.keep_alive()

You already imported background.py on line 10 though, so you can remove the import:

background.keep_alive()
3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.