All Questions

1650
votes
34answers
2693961 views

Why does my JavaScript get a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error when Postman does not?

I am trying to do authorization using JavaScript by connecting to the RESTful API built in Flask. However, when I make the request, I get the following error: XMLHttpRequest cannot load http://myA...
1
votes
1answers
64 views

how to give the hyperlink in <td> tag for flask deletion method

how to give the hyper link for flask deletion method. Here it is the code HTML code. I have written in HTML for hyperlink. So, how to give pass the url in flask route. I'm working with a Flask frame...
8
votes
2answers
7142 views

Combining Flask-restless, Flask-security and regular Python requests

My goal is to provide a REST API to my web application. Using: Python 2.7.5 Flask==0.10.1 Flask-Restless==0.13.1 Flask-Security==1.7.3 I need to secure access to my data for both web and REST acce...
4
votes
2answers
1029 views

Flask-SQLAlchemy and Flask-Restless not fetching grandchildren

Problem I am building an app on Flask, Flask-SQLAlchemy, and Flask-Restless. I have used restless to generate an API for a parent-child-grandchild relationship*. A GET on my child will correctly fetc...
2
votes
1answers
613 views

How to search a model by date with Flask-Restless

According to the documentation, a search query should look like: GET /api/person?q={"filters":[{"name":"age","op":"ge","val":10}]} How do I compare a date? I tried: GET /api/person?q={"filters":[...
1
votes
1answers
455 views

GAE app.yaml routing with Flask-Restless

I am developing an app with AngularJS frontend + GAE backend (Python and Flask). I am having troubles to setting app.yaml for routing my API endpoints created with Flask-Restless extention. My app.yam...
1
votes
1answers
142 views

How do I refer to a foreign key table twice?

I get the following error: u'detail': u"One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Could not determine join conditi...
1
votes
1answers
283 views

How to use the keyword arguments in Flask-RESTless

Me and a buddy have been reading through the docs for Flask-RESTless and it says: The arguments to the preprocessor and postprocessor functions will be provided as keyword arguments, so you should...
0
votes
2answers
90 views

Python / Flask - Using flask_restless with flask_httpauth

my objective in this question is to secure my API. in my application, I'm using Flask and flask_restless's APIManager to provide CRUD API to my Person object. code sample: manager = APIManager(app...

Previous Next