Flask

Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in Python.

0
Subscribe to Flask
Get notified when new articles on Flask are published.
    All
  • 20 Results
    Newest
    All time
    English
    • Tutorial

      How To Use Many-to-Many Database Relationships with Flask-SQLAlchemy

      In this tutorial, you’ll modify an application built using Flask and Flask-SQLAlchemy by adding a many-to-many relationship to it. You’ll have a relationship between posts and tags, where each blog post can have sever...
      0 days agoBy Abdelhadi DyouriDatabasesDevelopmentFlaskPythonPython Frameworks
    • Question

      Output from Flask Console - Debugging the App w/ Gunicorn & Nginx

      I’ve deployed a Flask app using Gunicorn and Nginx. That’s going well. I can’t seem to locate the configuration params to log the output from my Flask Application to aid with debugging it. I do have a logger installed...
      No answers yet21 days agoBy 214c0de15623-4692-a742-2e652aFlask
    • Question

      App platform error while deploying python/flask app - backports.zoneinfo

      Hello, I am trying to deploy my Python/Flask app using digitalocen’s app platform. This is my first time I am getting below error with python version - 3.10.4 [2022-05-02 04:33:16] Failed to build backports.zoneinfo [...
      2 answers2 months agoBy MandarDigitalOcean App PlatformFlaskPython Frameworks
    • Tutorial

      How to Use One-to-Many Database Relationships with Flask-SQLAlchemy

      In this tutorial, you’ll build a small blogging system that demonstrates how to build one-to-many relationships using the Flask-SQLAlchemy extension. You’ll have a relationship between posts and comments, where each b...
      2 months agoBy Abdelhadi DyouriDatabasesPythonDevelopmentFlaskPython Frameworks
    • Tutorial

      How to Use Flask-SQLAlchemy to Interact with Databases in a Flask Application

      In web applications, you usually need a database, which is an organized collection of data. Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Pyth...
      4 months agoBy Abdelhadi DyouriDevelopmentFlaskPython FrameworksSQLiteDatabasesPython
    • Question

      Can I configure Droplet to automatically restart python app service when I update *.py file?

      I am running a Python app on my droplet, with Flask, Gunicorn, Nginx talking to PostgreSQL hosted cluster, all on DO platform. I set it up by following this tutorial:https://www.digitalocean.com/community/tutorials/ho...
      1 answer4 months agoBy BluemontFlaskLinux CommandsPythonUbuntu 20.04
    • Question

      Python global list not taking definition level appends on first try

      I am running a python Flask app through a DigitalOcean app using gunicorn and when I append my global list from a definition it takes multiple attempts for the change to take and sometimes the list will wipe after the...
      1 answer4 months agoBy Daniel MajercikDigitalOcean App PlatformFlaskPython
    • Question

      Gunicorn increase timeout doesnt takes effect

      I have a minimal flask api deployed on digital ocean wich trhows this error when i do a large request: [1] [CRITICAL] WORKER TIMEOUT (pid:16) I tried: /env/Lib/site-packages/gunicorn-config.py (0 is unlimited,but i tr...
      1 answer4 months agoBy FloatingBlueGreenJellyfishFlask
    • Question

      Flask app: CORS header ‘Access-Control-Allow-Origin’ missing, having cors() enabled,and many requests goes through

      Hi,when my request is for little data,i have no errors and status 200,but when i do requests that responds more data -> yahoo finance does more requests,i get the CORS error.This is the api url https://jjtrading-yzukr...
      1 answer4 months agoBy FloatingBlueGreenJellyfishFlask
    • Question

      How to add multiple ip and add sub-domain in nginx?

      I was following the nginx,uwsgi with flask tutorial. My nginx config file contains: server { listen 5000; server_name 19X.X.X.X; client_header_buffer_size 5M; large_client_header_buffers 4 5M; client_max_body_size 75M...
      2 answers4 months agoBy somumFlaskNginx
    • Tutorial

      How To Use MongoDB in a Flask Application

      In web applications, you usually need a database to store and maintain persistent data. Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python L...
      4 months agoBy Abdelhadi DyouriDevelopmentFlaskMongoDBPython FrameworksDatabasesPython
    • Tutorial

      How To Use a PostgreSQL Database in a Flask Application

      In web applications, you usually need a database, which is an organized collection of data. You use a database to store and maintain persistent data that can be retrieved and manipulated efficiently. PostgreSQL, or Po...
      5 months agoBy Abdelhadi DyouriDatabasesPythonPython FrameworksFlaskDevelopmentPostgreSQL
    • Question

      My Flask App (essentially a static website) on a Ubuntu VPS droplet doesn't load half the time on my desktop, but will on my mobile phone.

      I followed the tutorial How to Deploy a Flask Application on an Ubuntu VPS from the digitalocean community tutorials and I got it to work. It’s a single HTML file, single CSS file, and one main.py file. I had a bit of...
      1 answer5 months agoBy TroyAFlaskUbuntuDNSSecurity
    • Tutorial

      How To Use and Validate Web Forms with Flask-WTF

      WTForms is a Python library that provides flexible web form rendering. You can use it to render text fields, text areas, password fields, radio buttons, and others. WTForms also uses a CSRF token to provide protection...
      6 months agoBy Abdelhadi DyouriPythonPython FrameworksDevelopmentFlask
    • Tutorial

      How To Build and Deploy a Flask Application Using Docker on Ubuntu 20.04

      Docker is an Open Source application that allows administrators to create, manage, deploy, and replicate applications using containers. Flask is a web micro-framework that is built on Python. In this tutorial, you wil...
      7 months agoBy Michael Okoh, Alex GarnettDockerUbuntuFlaskNginxUbuntu 20.04
    • Question

      Python Nginx Restart Error

      I’m building a web api with Flask. I got error when I use “sudo systemctl restart nginx” for ngnix restart after server installations, wsgi installations $ sudo systemctl status nginx.servic nginx.service - A high per...
      1 answer7 months agoBy aliustunelabcNginxFlaskPythonUbuntu 16.04
    • Question

      How come my website isn't hosted 24/7?

      Howdy everyone, sorry in advance if this is a silly question, I’m still pretty new to linux & digitalocean, and I’m having a bit of an issue. How come whenever I close the droplet’s web console tab, my website stops r...
      2 answers7 months agoBy gabrielgavrilov11UbuntuFlask
    • Tutorial

      How To Use an SQLite Database in a Flask Application

      In web applications, you usually need a database, which is an organized collection of data. SQLite is a simple and fast open source SQL engine that can be used with Python to store and manipulate application data. SQL...
      7 months agoBy Abdelhadi DyouriDatabasesPythonPython FrameworksFlaskDevelopmentSQLite
    • Tutorial

      How To Use Web Forms in a Flask Application

      Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python Language. In this tutorial, you’ll build a small web application with Flask that demonstr...
      8 months agoBy Abdelhadi DyouriPythonPython FrameworksDevelopmentFlask
    • Question

      Deploying a Dash app with Gunicorn on Ubuntu+Nginx

      I’ve been following the outline of tutorial on deploying a flask app on nginx / ubuntu, and trying to deploy a Dash app. When trying the command gunicorn --bind 0.0.0.0:5000 wsgi:app I get the error: Application objec...
      No answers yet8 months agoBy ya1220NginxUbuntu 20.04Flask