Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

flask

  1. R

    Python issues when trying to pull from database using SQLite3

    Hi, I'm a bit of a noob with python flask so I'm unsure if this is an issue for here or for the SQLite (Have already tried flask and databases but their solutions lead me to think this is a issue with the DB but they said to go to python) page or something else, so apologies for that off the...
  2. Velpus Captiosus

    Python Python Web Programming Flask website cookies issue

    I have this function in Flask: @app.route('/<usrname>?<app>',methods=['POST','GET']) def mainW(usrname:str,app:str): if request.method=='POST': action = request.form.get('action') if action == 'email': return...
  3. Kaworu

    Python [Flask] I have error with my database (flask shell runtime error)

    Hi! I am still trying to learn Flask. And I have some problems that I cannot fix myself. Okay, so now I have a code (classes) that define a database. And I would like to generate the database in flash shell. However, I have some fundamental error with my database, yet I do not know why. My...
  4. Kaworu

    Python [Flask-Moment] I can’t show the current time

    Hi! I am slowly learning Flask framework. When trying to show the current time (and time that had passed since the page got generated) I encountered an error. My app.py looks like this: My index.html in templates folder looks like this: And what I get is this: I dunno what I am doing...
  5. SpongeBOB

    Python Online calendar for booking.

    Hi everyone, I have a small website ( Flask powered ❤️). I would like that peoples could see my availability and book an "appointment" in the free spot. I plan to develop one my self, but meanwhile maybe something exist already ? ( FOSS ! (so not google etc.. )) If I could store that data...
  6. P

    Python Flask: How do you loop over items in a database with SQLAlchemy?

    Hi, I am trying to loop over database entries for books and display them on an e-commerce page. The books are stored in an SQLAlchemy database with information on title, author, and price. I want to loop through the database and display the information for each book object in the database...
  7. P

    Python Flask and Jinja syntax. How to get a name to show on another page?

    I am trying to make a web app using Flask, but I am having trouble with the Jinja syntax. I am following CS50. I want to take the student's name and dorm from index.html and display it on success.html. However, I am unable to do this. All that displays is "You have successfully registered...
  8. K

    Python How to send data frame to another neural net in flask route

    So, I have flask app with py-cicflowmeter. Purpose - detection of network attacks. According to my idea, two neural networks are used. The first is a fast binary LSTM classifier, and the second is a slow multiclass KNN. Both networks are pretrained and have 23 inputs each, with the same input...
  9. shivambhatele

    Python Which Python Framework is more Flexible in Large Projects?

    Hello All, I am new in python programming and got the opportunity to work on a large project which is based on finance domain. I want to know which python framework is more flexible between Flask and Django in a large project. I have asked this quey on Quora and according to this source, Django...
  10. cegbuji14

    HTML Problem loading local Json file

    Hi, im currently using Python's Flask to create a dashboard and on one route I'd like to render an html template that turns a local json file into a table. When using getJSON for some reason the localhost/server cannot find the file no matter how I've defined the path so the table always only...
  11. niiakoadjei

    Python I need help with Flask Form Submission Page

    # when I fill the form on the HTML Page (newfile.html) and click the SUBMITButton, NOTHING HAPPENS (No Saving file to database, and NO REDIRECT). # I need assistance because I'm a beginner and don't know if the problem is with my code or the IDE because the same code was working previously. #...
  12. Sarge

    Parametrizing routes in flask by multiple submit buttons

    I am trying to make a website which has solutions of a book (5 chapters). Firstly, I want to open chapters.html with route /chapters which displays five submit buttons and chapter no. as their values. <form action="/{{ chapter }}" method="POST"> <input type="submit" value="Chapter 1">...
  13. S

    HTML & CSS how to split page on static and scroll-able parts?

    I want to split web page onto two parts. Static (top one) and scroll-able (bottom one). The problem is that solution I have creates a scroll-able box with fixed width and height. But I've seen an example of a page where bottom and right sections are limited by size of the browser screen and have...
  14. R

    Python Retaining variables from a text box.

    My issue is this. I can retrieve the chosenclass variable from the html text box, and the classroom of students is displayed, but after the updatepa function is called, that is after a student record has been updated, the variable is reset to the initial value of " " and so no class is displayed...
Back
Top Bottom