Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Looking for Flsk web page to view table with logs
Post: RE: Looking for Flsk web page to view table with l...

DB tables can be exposed using flask-admin: https://flask-admin.readthedocs.io/en/v1.0.7/db_sqla/
thomasp Web Scraping & Web Development 2 2,478 Nov-21-2018, 02:08 PM
    Thread: Having Trouble with Flask and SQLAlchemy
Post: RE: Having Trouble with Flask and SQLAlchemy

I do'nt see the screenshot, also, you don't pass the posts and resources as parameters to render_template. return render_template('resources2.html', posts=posts, resources=resources)http://flask.poco...
thomasp Web Scraping & Web Development 2 2,994 Nov-21-2018, 01:58 PM
    Thread: Redirecting all Flask logs
Post: RE: Redirecting all Flask logs

Flask uses the logging module: http://flask.pocoo.org/docs/1.0/logging/ It should be possible to add a custom handler, for example: https://docs.python.org/2/library/loggin...loghandler
thomasp Web Scraping & Web Development 1 3,333 Nov-21-2018, 01:52 PM
    Thread: Flask: Error output to the browser instead of error_log
Post: RE: Flask: Error output to the browser instead of ...

you won't get error messages like you do in php if that's what you want. You can check the apache logs or use https://flask-debugtoolbar.readthedocs.io/en/latest/ . use this for debug logs: app.confi...
thomasp Web Scraping & Web Development 1 2,783 Sep-28-2018, 12:49 PM
    Thread: Python Flask REST API
Post: RE: Python Flask REST API

if __name__ == '__main__': app.run(debug=True, host=host, port=port)where host is the ip of your interface, eg. 192.168.0.2 and port is the port number (default is 5000) check ifconfig (linux) fo...
thomasp Web Scraping & Web Development 1 2,998 Sep-28-2018, 12:43 PM
    Thread: flask, I want to send a json from the front end and update it to the postgresql DB wi
Post: RE: flask, I want to send a json from the front en...

Hi, You can use this package: https://github.com/thomaxxl/safrs . It creates a full-blown json frontend to a db backend. an example can be found here: https://github.com/thomaxxl/safrs/blob/m...ion...
thomasp Web Scraping & Web Development 1 4,064 Apr-12-2018, 08:40 AM
    Thread: How to access py script variables through web app ?
Post: RE: How to access py script variables through web ...

You can use flask (http://flask.pocoo.org/docs/0.12/quickstart/) eg from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['POST', 'GET']) def test(): return 'request.ar...
thomasp Web Scraping & Web Development 1 2,415 Mar-16-2018, 09:43 AM
    Thread: Insert results API in database
Post: RE: Insert results API in database

Try to use sqlalchemy when working with databases, eg: from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() from sqlalchemy import create_engine engine = create_engine('...
thomasp Web Scraping & Web Development 2 2,602 Mar-16-2018, 08:32 AM
    Thread: General advice web application
Post: RE: General advice web application

You'd have to use a framework such as flask or django for the backend. You also have to know about frontend dev: html,css and especially javascript using js frameworks ( react, jquery, angular ... ) ...
thomasp Web Scraping & Web Development 3 3,380 Jan-27-2018, 05:37 PM

User Panel Messages

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