Skip to content

Tag: web

I want to know why secret_key is wrong

I’m making website using Python Framework of ‘Django’. I have some problems with Django about secret_key . When I set a secret_key in .env file on private and change settings.py, there is problem. I’m trying to solve it by myself, but its so difficult. When I runserver on django, It er…

How can I run a Python script in HTML?

Currently I have some Python files which connect to an SQLite database for user inputs and then perform some calculations which set the output of the program. I’m new to Python web programming and I want to know: What is the best method to use Python on the web? Example: I want to run my Python files wh…

Playing a wavefile from the html using flask framework?

This is my run.py code This my base.html file this my tasks.html This my s1.html In the s1.html i have a hyperlink to a audio wav file . I want to play the audio file from the s1.html. The wav file is present in the root directory. It is throwing error GET /ps.wav HTTP/1.1″ 404 Please tell how to solve