What is the workflow for a secure 'verify by email' system?

I am thinking of a forum type system that will allow users to post/edit posts without an account but through e-mail verification. So, you would fill out the form, supply email address, submit, and...

Connection refused when sending mail with Flask-Mail

I'm having trouble sending email with flask-mail ( http://pythonhosted.org/flask-mail/ ) from flask.ext.sqlalchemy import SQLAlchemy from flask import Flask, request, session, g, redirect,...

Using HTML templates to send emails in python

I'm trying to write a separate mail service, which is decoupled with our Flask application. I'm looking for a way to send welcome emails when users first log into our Flask application. I'm using...

ImportError: No module named flask_mail

from flask_mail import Mail,Message from flask import Flask I am trying to mail but import error is occurring

Python Flask Email KeyError KeyError: 'mail'

I have a problem using Python Flask and Flask-Mail libraries. I'm getting a error: KeyError: 'mail' Can someone help me resolve this? My code is: # -*- coding: utf-8 -*- from flask import...

how to add flask-login to flask-admin

Login works great on my standard views, and the admin works great, but i can't seem to add login to my admin/yikes!!! It seems straightforward flask admin docs but when I add this section class...

Flask Security's Flask Mail registration receives smtplib.SMTPAuthenticationError from smtp.gmail.com

I have a flask app using Flask-Security's registration to send Flask Mail upon registration. I've pointed the flask mail config at smtp.gmail.com port 464 using SSL. However, when the app tries to...

Send html email using flask in Python

I want to send HTML webpage as a mail body using Python and Flask. I tried using MIME module, but somehow I am not being able to send mail. If anyone has any expertise on this, can you please help...

Why does localhost:5000 not work in Flask?

I'm using flask app factory pattern like and have this run.py file: from app import create_app app = create_app() if __name__ == '__main__': app.run(host='localhost', debug=True) Then I...

How to read SharePoint Online (Office365) Excel files in Python with Work or School Account?

I am a university student and I have registered as an Office 365 Education user via my university Email address. I usually log into https://www.office.com with my Email account: [email protected] The...

Flask SERVER_NAME setting best pratices

Flask has the setting SERVER_NAME, which is handy most of the times. Since my app has background task, I use the Flask context. For the context to work, the SERVER_NAME should be set. When the...

OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

I'm experimenting with the use of Huey as a cross platform task queue . I've found https://github.com/pjcunningham/flask-huey-example , which I've cloned and set up a virtualenv for using conda...

AttributeError: 'NoneType' object has no attribute 'drivername'

I get this error when i start my app. Obviously it has something with SQLAlchemy. I 've been working this example with help of Corey Schaffer Flask tutorial. > File...

Flask-Mail not Authenticating with Gmail and App password

So I am getting an SMTPSenderRefused error when I try to use the flask app I built to send an email. Let me start buy saying this worked previously but now it has stopped. I am at a loss and I...

ModuleNotFoundError: No module named 'flask_migrate'

I'm new to python+flask, and wanted to use flask to create a website. The IDE is Visual studio 2017, and I could run the program successfully with flasky.py as startup file. But in CLI, I...

Email not sending on create_user

I am trying to use flask-security and have become helplessly stuck trying to send an email when create_user is called. The user is being created. The roles are working, however, I can not find...

Using Datatables AltEditor requested unkown parameter

I'm having trouble with Datatable AltEditor when trying to update rows. Btw, I'm using flask as back-end. This is my setup: First I'll show you what the datatable looks like Html table: <div...

Flask Mail doesn't work when deployed on Ubuntu

I'm sending password reset email with Flask-Mail. When I tried it on development server everything works fine. When deployed on Ubuntu (using NGINX, Gunicorn) sending the email leads after a long...

Access Flask-SQLAlchemy database outside of view functions

I have created a small Flask application which stores its data in an sqlite database that I access via flask-sqlalchemy. However, when I run it, I get the following error: RuntimeError: No...

smtplib.SMTPSenderRefused: (530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 https://support.google.2 - gsmtp', '[email protected]')

init.py from flask_wtf import FlaskForm from wtforms import StringField,SubmitField,PasswordField from wtforms.validators import DataRequired,Length,Email from flask import Flask from...

Flask-mail image not showing when sending html template

I'm very new with flask-email and now i try to send the html email which is have the image inside the body of template but when open this html on email the image does not showing up, so how can i...

SMTPHandler fails to send logging email with timeout error

I'm having an issue using python's SMTPHandler to send emails upon errors in my web app, but when I use smtplib in a shell instance to see if this is an issue with the server or my own connection,...

RuntimeError: Working outside of application context. Flask - Mail

from flask import current_app as app from flask import render_template from threading import Thread from flask_mail import Message def send_async_email(app, msg): with app.app_context(): ...

Flask Wont use my Installed Modules in PythonAnywhere

I need help understanding whats wrong here. I will try to explain this as best I can, but Im a bit new to PythonAnywhere. I get this error: Traceback (most recent call last): File...

Flask app secret key is not loading with Gunicorn

When I try to run my Flask using gunicorn -w 3 wsgi:app, and visit the page via the ip address, then I receive the following error: RuntimeError: A secret key is required to use CSRF. in the...

RuntimeError: No application found. Either work inside a view function or push an application context

I have built a flask web application using some tutorial on youtube. Its was working fine till I tried to add new tables to the db. I created the table class in models.py. But when I try to run...

Flask testing with pytest, ENV is set to production?

I have built a flask app and i would like to create a test suite. Reading around it looks like pytest is the way to go; however, I am finding it very difficult to understand how to get going, I...

pathlib: cannot import name 'Sequence' from 'collections'

It has been a few days since I rebuilt my project but when I was testing some things this morning I wanted to update my Werkzeug package due to an issue I was having with its Multidict class, I...

ModuleNotFoundError: No module named 'flask_mail'

I am creating a web application where the user will receive a confirmation mail after they've registered. But I am getting an error in the command line, Traceback (most recent call last): File...

ModuleNotFoundError: No module named 'wtforms.fields.html5'

I have a flask app that uses wtforms. I have a file which does: from wtforms.fields.html5 import DateField, EmailField, TelField # rest of the file I just wanted to rebuild my docker container...