Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: advice needed to construct queries in flask-sqlalchemy from mysql select
Post: advice needed to construct queries in flask-sqlalc...

Hi, I have a libre office database for my accounts and I am trying to create a flask app on a local net to reproduce the database making it easier to access the database from different pc's on the net...
pascale Data Science 0 1,734 Dec-08-2019, 07:03 AM
    Thread: view function parameter passed to function but not populateing form
Post: view function parameter passed to function but not...

Hi, I am trying to display the rows of a database model on a web page as forms that are populated with data that I can then edit. There will be several hundred rows, I can display the rows using a su...
pascale Networking 0 1,479 Nov-17-2019, 01:28 PM
    Thread: form.populate_obj problem "object has no attribute translate"
Post: form.populate_obj problem "object has no attribute...

Hi I am creating a flask app using flask-wtf, I am using sqlachemy and mysql data base. I have an add function (which adds data to the data base) and an edit function (which updates the data base), th...
pascale Web Scraping & Web Development 0 3,622 Jun-12-2019, 07:30 PM
    Thread: RuntimeError: No application found. Either work inside a view function or push an app
Post: RE: RuntimeError: No application found. Either wor...

Larz60+ Thank you so much for helping me, I have added the information you requested to the origional post. The reason why I have written the code like this;Quote:This code is wrong: for pin in pins:...
pascale Data Science 2 6,920 Mar-04-2019, 08:17 PM
    Thread: RuntimeError: No application found. Either work inside a view function or push an app
Post: RuntimeError: No application found. Either work in...

Hi all Question "How do I call "index() in "action(changePin)" to make it all work or is index not needed? I have some code and if I # these parts i get error codes but I have a function "index()" wit...
pascale Data Science 2 6,920 Mar-04-2019, 05:51 PM
    Thread: flask-SQLAlchemy query with keyword as function argument
Post: RE: flask-SQLAlchemy query with keyword as functio...

Hi all. I am sorry but I asked this question on another forum yesterday (a cardinal sin) and somebody has helped me. Its the first time anybody has helped me on that forum. any way the answer to my pr...
pascale Web Scraping & Web Development 2 3,451 Mar-03-2019, 10:31 PM
    Thread: Reading every post
Post: RE: Reading every post

Hi, I am sort of new to coding, I dont really understand much of the technical jargon so I find the hardest part the titleQuote:and the one that look interesting from the title. when I read something...
pascale Board 29 10,955 Mar-03-2019, 09:51 PM
    Thread: flask-SQLAlchemy query with keyword as function argument
Post: flask-SQLAlchemy query with keyword as function ar...

Hi, I want to make the GPIO change and store the state in a database. I am stuck with one part where in the tutorial I am following he is using a dictionary instead of a database. In his code he lists...
pascale Web Scraping & Web Development 2 3,451 Mar-03-2019, 09:14 PM
    Thread: SQLAlchemy query return last row only
Post: SQLAlchemy query return last row only

Hi, Bit stuck with this one, I am trying my code out in shell. I am following this tutorial and this tutorialto make the gpio of pi operate from a web page, storing the pin state in a database. I have...
pascale General Coding Help 0 5,073 Mar-01-2019, 05:47 PM
    Thread: flask sqlite jinja accessing and updating database help
Post: RE: flask sqlite jinja accessing and updating data...

Hi snippsat I have followed your advice and installed pyenv, It works a treat. You can ignore this thread as I am now going to start all over again. What I was hoping to achieve is a web page with a ...
pascale Web Scraping & Web Development 5 4,085 Feb-11-2019, 03:49 PM
    Thread: flask sqlite jinja accessing and updating database help
Post: RE: flask sqlite jinja accessing and updating data...

Thanks again snippsat. I have now installed 3.7 and I will follow your setup for pyenv and use that. I understand what you mean, as I have not been using an environement for this project, I have set u...
pascale Web Scraping & Web Development 5 4,085 Feb-11-2019, 08:32 AM
    Thread: flask sqlite jinja accessing and updating database help
Post: RE: flask sqlite jinja accessing and updating data...

Dear snippsat, Thank you for your reply Quote:A couple of advice use Flask-SQLAlchemy for all DB stuff in Flask,it's very well made easier to use and better error feedback. I have wanted to use flas...
pascale Web Scraping & Web Development 5 4,085 Feb-10-2019, 05:06 PM
    Thread: flask sqlite jinja accessing and updating database help
Post: flask sqlite jinja accessing and updating database...

Hi, In my web app I have different devices that are controled by raspi GPIOs, the "name" "pin" and "state" of each is held in a sqlite database. I am following the flaskr blog tutorial as the set up. ...
pascale Web Scraping & Web Development 5 4,085 Feb-09-2019, 05:52 PM
    Thread: Flask assertion error
Post: RE: Flask assertion error

Hi, I am following this tutorial to, Please post some of your code so I can see what the problem is. regards paul
pascale Web Scraping & Web Development 1 4,486 Feb-07-2019, 08:34 PM
    Thread: display multiple sensors on webpage python flask jinja
Post: RE: display multiple sensors on webpage python fla...

Awsome DeaD_EyE I will try this out and investigate pathlib Thank for your advice. Regards Paul
pascale Web Scraping & Web Development 6 5,198 Jan-29-2019, 10:10 AM
    Thread: display multiple sensors on webpage python flask jinja
Post: RE: display multiple sensors on webpage python fla...

SOLVED!!! Thank you guys! I have solved it. Heres my code for [email protected]('/sensors') @login_required def sensors(): return render_template('sensors/sensors.html', ...
pascale Web Scraping & Web Development 6 5,198 Jan-28-2019, 09:06 PM
    Thread: display multiple sensors on webpage python flask jinja
Post: RE: display multiple sensors on webpage python fla...

Thank you so much for your replies stullisQuote:On line 18, you're missing a closing parenthesis. That's causing the syntax error. Also, the comma at the end of line 17 should not be there. this rem...
pascale Web Scraping & Web Development 6 5,198 Jan-28-2019, 09:05 AM
    Thread: display multiple sensors on webpage python flask jinja
Post: display multiple sensors on webpage python flask j...

Hi, I am a bit stuck,There are plenty of tutorials and forum replies for one DS18B20 sensors but I cannot find any for multiple sensors that dont use esp826 or something else. My code (below) displays...
pascale Web Scraping & Web Development 6 5,198 Jan-27-2019, 09:39 PM
    Thread: Layout for Webpage Setup?
Post: RE: Layout for Webpage Setup?

Hi Two good flask tutorials are Flask and Miguel Grindberg tutorial which is more in depth. Flask is a microframwork that can expand with your needs and has plenty of extensions so you are not force t...
pascale Web Scraping & Web Development 5 4,102 Oct-25-2018, 08:40 PM
    Thread: flask requests display data from api on webpage with javacript
Post: flask requests display data from api on webpage wi...

Hi I am building a web app to access my Etsy store, so that i can download stock, sales, messages etc, and display this information and save what I need to the data base, I am following the flask tuto...
pascale Web Scraping & Web Development 0 2,742 Oct-25-2018, 08:30 PM

User Panel Messages

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