Webview or iframe in django python
Question: How to put an iframe, or something similar(like a webview), in my website such
that the request for the iframe is sent from server side instead of client
browser? I am using django in backend. I want to use iframes for viewing of
regular sites like google.com.


Answer: if your are trying to edit a html file and want to show iframe in it.... then
you can do this

    
    
    import webbrowser
    
    f = open('helloworld.html','w')
    
    message = """<html>
    <head></head>
    <body><iframe src="#"></iframe></body>
    </html>"""
    
    f.write(message)
    f.close()
    
    webbrowser.open_new_tab('helloworld.html')enter code here
    

