Python Frameworks

A Python Framework is a collection of packages or modules that allow developers to create applications written in Python.

Python Frameworks subscription active
You will receive email notifications for new publications on Python Frameworks.
63 Results
  • Question

    ImportError with Flask

    Currently experiencing this on Linux CentOS using Py 3.5 venv File "/var/www/html/site-available/src/app.py", line 1, in <module> from flask import Flask, render_template ImportError: No module named flask Any tips or...
    Accepted Answer: Hi @dev5 You might find better help with Python programming on StackOverflow: https://stackoverflow.com/questions/31252791/flask-importerror-no-module-named-flask
    2 By dev5 Python Frameworks
  • Question

    how to fix Leverage browser caching nginx?

    i went to the Internet, put all the possible settings for caching, but all the same the end of google page sped insights wrote that I do not have caching for these files how to fix this? this question have on StackOve...
    Accepted Answer: i fix it on stackoveflow https://stackoverflow.com/questions/47966400/how-to-fix-leverage-browser-caching-nginx/47976385#47976385
    3 By kronvidvladimir Nginx Caching Python Frameworks Ubuntu
  • Question

    Domain.com works, *.domain.com returns Bad Request, and www.domain.com does not connect

    The site loads when I visit the droplet IP address and domain.com. When I go to www.domain.com, Chrome reports: This site can’t be reached www.domain.com’s server IP address could not be found." When I try *.domain....
    Accepted Answer: Someone advised me to rework my DNS: A: example.com CNAME: *.example.com And to edit my nginx config: ``` Add this server block to rewrite subdomains server { listen 80; server_name *.example.com; location / { rewrite...
    2 By alexalexyang Django Deployment DigitalOcean DNS Networking Python Frameworks Ubuntu 16.04
  • Question

    Apache always shows default page for Flask application

    https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps I applied those steps in this tutorial and did not face any problem but when I enter my IP adress, I always see defau...
    Accepted Answer: Hi @hansen After you noticed me, I changed "ServerName" to IP adress given to me. Now I see Internal Server Error screen instead of default page.
    2 By squirtwinkle Apache Python Frameworks Ubuntu 16.04
  • Question

    Flask application not finding GnuPG

    I'm interfacing gpg in a flask application with python-gnupg. The module is installed in a virtualenv together with the rest of my application. When running I receive a 500 internal server error, and the exception is:...
    Accepted Answer: The following answer worked: http://stackoverflow.com/a/39088161/233277
    1 By puse Python Python Frameworks Nginx Ubuntu 16.04
  • Question

    Help a gunicorn command

    how to run a gunicorn commad for this python app and this is my file app.py on root folder from app import create_app, db, socketio if name == 'main': flaskapp = createapp('dev') with flaskapp.appcontext(): ...
    0 By Erosennin Python Frameworks
  • Question

    How to fix infinite page reload? [Flask app with Gunicorn and Nginx on Ubuntu 18.04]

    Hi, I deployed a Flask app on an Ubuntu 18.04 VPS using Gunicorn and Nginx as the driving servers. I followed this official tutorial (https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-wi...
    0 By thatgurjot Nginx Ubuntu 18.04 Python Frameworks Python
  • Question

    How to fix 502 bad gateway error with nginx/uwsgi for flask app?

    Hi, I was following the tutorial to deploy a flask app with uwsgi and nginx. Everything is working correctly until the last part (where basically you have your app online). I read and read again the tutorial to see if...
    13 By jeremydagorn Nginx Python Frameworks Ubuntu
  • Question

    How do i clear the error which i get on executing "docker-compose up -d"

    HI i am new to the docker and flask applications and i was working on a project where i was using Flask framework +mongoDb database in a docker and i found a helpful tutorial : Example link (https://www.digitalocean.c...
    3 By sanjeevrao159v Applications Docker Nginx Ubuntu 18.04 Python Frameworks
  • Question

    How to check error logs for flask/uwsgi/nginx app?

    Hi, I am trying to follow this tutorial https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 I can run python myapp.py, it starts correctly on port 5000...
    2 By jeremydagorn Python Frameworks Logging Ubuntu
  • Question

    No python application found - uWSGI + Flask + nginx

    After following this tutorial to set up flask on nginx and uwsgi (https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-14-04) on Ubuntu 14.04, I managed to ge...
    2 By dter Python Frameworks Python Deployment Nginx Logging Ubuntu
  • Question

    How we can deploy the Flask Application using Managed Database on Digital Ocean server

    Can you please confirm how we can pass the ssl mode required variable under the Flask application. I am using the Managed MYSQL database instance it's connected successfully with my local database, but when I am using...
    1 By rahularoraengg Clustering MySQL Python Python Frameworks DigitalOcean
  • Question

    How to install SQLalchemy, then connect to managed PostgreSQL DB

    I successfully went through this tutorial: https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04 Now I'm stuck. Trying to also install SQLalchemy and ...
    0 By andyluminocity Python Frameworks DigitalOcean Managed PostgreSQL Database
  • Question

    Mezzanine deployment - .virtualenv missing Mezzanine after running fab install/create/deploy/all

    Hey all! Have gotten past some previous issues, and managed to upload the project through Git. Now when I want to testrun the server using gunicorn, like cd into the project folder and run python manage.py runserver a...
    1 By SnekGuy Python Django Python Frameworks
  • Question

    Deploying Mezzanine project using fabric - from Windows 7

    I have tried finding some info around this on the web, but with little success. Hopefully someone here has some insight which can help me progress. So, I’m basically ready to deploy my Mezzanine project to an Ubuntu14...
    1 By SnekGuy Django Python Python Frameworks
  • Question

    Ngnix not forwarding request to gunicorn socket.

    I've was following This article of digital ocean https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04 I was able to setup flask, gunicorn, Nginx corr...
    2 By abhinav199530singh Python Frameworks Nginx Python CentOS
  • Question

    How to SETUP pipenv ON ubuntu 18.04 FOR python flask apps?

    How do you setup a Python 3.7 and pipenv production environment on Ubuntu 18.04? My development environment uses Python 3.7, Flask, and Pipenv. All the tutorials I found only show how to use python3.7 -m venv, pip, an...
    0 By mmmrev Python Python Frameworks Ubuntu 18.04
  • Question

    Intermittent 500 error when inserting into MySQL from Python Flask App

    I keep getting a 500 issue when inserting data into MySql DB. I know when the issue occurs but can't figure out why. When I insert data (e.g. new user) into my DB, I can see it has been inserted correctly from MySql W...
    1 By ollieb Python DigitalOcean MySQL Django Python Frameworks Nginx CentOS
  • Question

    What is solution of "120 upstream prematurely closed connection while reading response header from upstream error "??

    I am making flask app which is binded gunicorn .As i open my page i get 502 Bad gatway error and tail has given this error log - *120 upstream prematurely closed connection while reading response header from upstrea...
    1 By bracketsoft108 Python Python Frameworks Ubuntu 16.04
  • Question

    Is there any python framework to automate the DigitalOcean's droplet's/snapshots tasks such as creation, deletion etc. of my daily tasks?

    Is there any python framework which I can use to automate the DigitalOcean's droplet's/snapshots tasks such as creation, deletion, management or my daily tasks? Right now it is a big headache for me to manage that .. ...
    2 By woirsoftware DigitalOcean API Python Frameworks Automated Setups CentOS