Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Flask, read H5 text value
Post: RE: Flask, read H5 text value

Thank you, all the ones I could find, and including the one you posted are using a form. I don't have a form. I guess I'll have to use the form tag.
tantony Web Scraping & Web Development 4 1,446 Oct-31-2022, 05:29 PM
    Thread: Flask, read H5 text value
Post: RE: Flask, read H5 text value

Anyone?
tantony Web Scraping & Web Development 4 1,446 Oct-31-2022, 02:43 PM
    Thread: Flask, read H5 text value
Post: RE: Flask, read H5 text value

I assume I also have to do some javascript such as may be mouse hover so when I move the mouse over the item in the list, it'll select that? All the online examples I've seen with Flask are using for...
tantony Web Scraping & Web Development 4 1,446 Oct-28-2022, 08:41 PM
    Thread: Flask, read H5 text value
Post: Flask, read H5 text value

I'm writing a Flask grocery list app. How would I get the text value of H5 tag? So I can delete or modify it? Screenshot: Screenshot from Raspberry Pi So I'm making each item in the list a H5 HTM...
tantony Web Scraping & Web Development 4 1,446 Oct-28-2022, 08:39 PM
    Thread: Hiding username and password on sql
Post: RE: Hiding username and password on sql

thank you
tantony General Coding Help 10 2,932 Oct-21-2022, 12:46 PM
    Thread: Hiding username and password on sql
Post: RE: Hiding username and password on sql

@rob101 how would I do that? That seems more secure.
tantony General Coding Help 10 2,932 Oct-20-2022, 08:38 PM
    Thread: Hiding username and password on sql
Post: RE: Hiding username and password on sql

ok thanks. I was just wondering how this is done. It sounds like there's no preferred method.
tantony General Coding Help 10 2,932 Oct-20-2022, 07:54 PM
    Thread: Hiding username and password on sql
Post: RE: Hiding username and password on sql

Yes, I thought about input() and entering credentials, but in this example, I don't want to do that. Because my eventual plan is to run this as a service or startup task. So I don't want it to wait ...
tantony General Coding Help 10 2,932 Oct-20-2022, 07:39 PM
    Thread: Hiding username and password on sql
Post: RE: Hiding username and password on sql

What I did is this, not sure if this is the best solution. I created another python file called sql_creds.py, then I copy and pasted username and password there. Then on my main.py, I imported sql_cre...
tantony General Coding Help 10 2,932 Oct-20-2022, 07:22 PM
    Thread: What do you do outside of work?
Post: RE: What do you do outside of work?

In my defense **smile** , I'm a Network Admin, so I don't really do 3d model, and robotics for work. So technically, they are outside work activities **biggrin** Love to hear what others here do as...
tantony Bar 4 1,489 Oct-20-2022, 07:09 PM
    Thread: Hiding username and password on sql
Post: Hiding username and password on sql

In my Python code, I have my username and password entered as plain text. But this is not the best practice since now anyone that see my code also knows the database root username and password. How ...
tantony General Coding Help 10 2,932 Oct-20-2022, 07:04 PM
    Thread: mysql id auto increment not working
Post: RE: mysql id auto increment not working

Thank you again, makes sense
tantony General Coding Help 10 2,428 Oct-18-2022, 03:44 PM
    Thread: mysql id auto increment not working
Post: RE: mysql id auto increment not working

ok thank you
tantony General Coding Help 10 2,428 Oct-18-2022, 03:38 PM
    Thread: mysql id auto increment not working
Post: RE: mysql id auto increment not working

I'm learning mySQL, how do I reassign all the id keys so they're in order?
tantony General Coding Help 10 2,428 Oct-18-2022, 02:51 PM
    Thread: mysql id auto increment not working
Post: RE: mysql id auto increment not working

Because I deleted it by name, WHERE name = 'Michael', and commit. But now its deleted 4, Output:('Peter', 'Lowstreet 4', 1) ('Hannah', 'Mountain 21', 3) ('Sandy', 'Ocean blvd 2', 5)
tantony General Coding Help 10 2,428 Oct-18-2022, 02:45 PM
    Thread: mysql id auto increment not working
Post: RE: mysql id auto increment not working

ok, I thought AUTO_INCREMENT will 'auto increment'. Is that because I deleted the record by id, and not something like a name? So there's no way to reset so it will be 1,2,3,4,5?
tantony General Coding Help 10 2,428 Oct-18-2022, 02:43 PM
    Thread: mysql id auto increment not working
Post: mysql id auto increment not working

I deleted ID 2 from mySQL db, but then I have the following to AUTO INCREMENT import mysql.connector mydb = mysql.connector.connect( host="localhost", user="root", password="password", datab...
tantony General Coding Help 10 2,428 Oct-18-2022, 02:29 PM
    Thread: import module error
Post: RE: import module error

@snippsat Thank you that worked.
tantony General Coding Help 5 3,453 Oct-18-2022, 12:29 PM
    Thread: import module error
Post: RE: import module error

Anyone? Apparently this is a common error and easy to fix, but I can't figure it out. When I run main.py, this is what I'm getting for errors. Error:Traceback (most recent call last): File "C:\Us...
tantony General Coding Help 5 3,453 Oct-17-2022, 08:13 PM
    Thread: import module error
Post: RE: import module error

It says error is in line 1, this is my first time importing using a period at front. But my folder structure and code is what's in Github link from . import db
tantony General Coding Help 5 3,453 Oct-17-2022, 04:31 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020