6
votes
0answers
711 views

Using FieldList and FormField with wtforms

We have the following forms and we are trying to create list of GroupRoleForms for each group. class FullNameMixIn(): full_name = TextField( 'Full name', [ ...
3
votes
0answers
53 views

sqlalchemy, postgresql and relationship stuck in “idle in transaction”

I have a problem related to sqlalchemy and postgresql. class Profile(Base): ... roles = relationship('Role', secondary=role_profiles, backref='profiles', lazy='dynamic') ...
3
votes
0answers
355 views

Flask-Login and Heroku issues

I have a sample web application (flask with flask-login running on heroku) at this URL: http://twittaclone.herokuapp.com. When I run it on my localhost the login functionality works fine. When I push ...
3
votes
0answers
124 views

Flask-Assets and Flask-Testing throws RegisterError: Another bundle is already registered

I have my Flask app which uses Flask-Assets and while trying to run the unittest cases, except the first testcase, others fails with the following RegisterError. ...
2
votes
0answers
45 views

Python Flask, how to detect a SSE client disconnect from front end Javascript

Maybe this is a problem in Flask, there is no way to handle disconnection event on the server side. In Response class, there is a method named "call_on_close", where we can add a function without ...
2
votes
0answers
70 views

With Flask how to show my data from my CSV file (JSON) on a webpage?

I would like to show the content of my CSV file on a simple webpage like this : Do you know with Flask what i have to do with this > I am quite new on Flask,i read the tutorial basic for Flask but ...
2
votes
0answers
105 views

WebSockets and WSGI together through Gunicorn

Is it possible to use Gunicorn to handle WebSockets and regular WSGI views together in one (Flask) app? I know how to get websockets to work using the Gevent WSGI server, and I can get a regular ...
2
votes
0answers
151 views

uWSGI is unable to find Redis

Here is my setup: /etc/nginx/conf.d/mysite.conf server { listen 80; server_name mysite.com; location / { include uwsgi_params; uwsgi_pass unix:/tmp/mysite.sock; ...
2
votes
0answers
657 views

uwsgi + Flask + virtualenv ImportError: no module named site

(Other posts on SO are similar, but none have the specific combination of uwsgi + Flask + virtualenv) (This one is closest) I installed uwsgi via apt-get. I also tried pip install wsgi. Both gave ...
2
votes
0answers
39 views

Appengine channels automatically disconnected on production

On production, a soon as I open a channel with the javascript, it disconnects a seccond after. Everything works super fine on devserver. The callback works on the server but not on the client. We are ...
2
votes
0answers
76 views

Values in dropdown menu created using ReferencePropertyField() are not proper

I am using Flask on App Engine. Here is the code: models.py: class Client(db.Model): name = db.StringProperty(required=True) def __repr__(self): return unicode(self.name) class ...
2
votes
0answers
153 views

Message queues- how do I know who I am?

I have a Flask application that uses Nose to discover and run a series of tests in a particular directory. The tests take a long time to run, so I want to report the progress to the user as things ...
2
votes
0answers
407 views

How to plot tweets by location in real time on to a map e.g. leaflet

I would like to know what would be the best way to plot real-time tweets by their location onto a map application such as leaflet. At the moment I am getting the tweets by the streaming api(filtered) ...
2
votes
0answers
194 views

Flask and ndb.toplevel

When using Flask, what is a sensible way to reap all async requests, much the way attaching @ndb.toplevel to an outside function would be? My first thought is to create an app with app = Flask(), ...
2
votes
0answers
282 views

How can I authorize using werkzeug when accessed via Javascript?

I implemented Basic Authorization in Flask. (references this snippet) It works really well. def check_auth(username): user_id = get_user_id(username) return user_id is not None def ...

15 30 50 per page