Miguel Grinberg

Results 534 comments of Miguel Grinberg

> The login_required decorator could detect that it's not being run on the correct type of function This is someone else's project, so I have no control here. > Alternatively,...

If you use HTTPS then all traffic is encrypted, including login information.

This extension does not require any arguments, not even the app instance, so you can use it with app factory style applications just fine. There is no need to call...

There is no `startOf` or `seconds` functions in Flask-Moment. You are writing Python code here, not moment.js in JavaScript. See the documentation for the list of operations that are supported.

Are you asking me how to do this? The `` element that you are showing looks fine to me, without any context I really don't have any comments about it.

I don't remember if this works with datatables.js or not, but have you tried returning the `` element in the ajax call?

@DinakaranP I was suggesting you return the HTML that you want to render from the server, which might be easier if you are more experienced with Python. Unfortunately I don't...

Sorry I missed this before. Yes, the name if the variable does not matter, you can use any name you like.

The request that you've made caused an unhandled exception. You are also running the Flask application with the debugger enabled, so the debugger takes over and returns the interactive stack...

This is in part related to https://github.com/miguelgrinberg/python-socketio/issues/485. The part that is new is the fact that the disconnect handler is not being invoked when the server returns an error. That...