Closed richban closed 8 years ago
The problem has been solved. It was a mistake from my side. I have been initializing cubesviewer wrongly.
cubesviewer.init({
//cubesUrl: "{{ cubesviewer_cubes_url }}"
cubesUrl: "{{ cubesviewer_cubes_url }}/cubes"
});
Glad you found it. Thanks for sharing!
@jjmontesl yes sure! it's really cool visualising tool. I am implementing an open-data data warehouse so when it's ready I will let you know. I have one more question why do I have to run run the Slicer and my flask_app simultaneously?
slicer serve slicer.ini
python flask_app.py
I thought if I register it in my flask_app like this it's running.
if __name__ == '__main__':
# Create a Slicer and register it at http://localhost:5000/slicer
app.register_blueprint(slicer, url_prefix="/slicer", config="slicer.ini")
app.run(host="localhost", port=8000, debug=True)
I have no experience with Flask, so I am not the best one to answer here, but to me it looks that what you are doing is right.
You can check separately if your slicer server is running, simply access http://localhost:8000/slicer (I think that should be the URL as per your example above). If that works, you'll see Cubes responding with server information (version and other data).
Then, point your cubesUrl
setting to "http://localhost:8000/slicer".
I have moved all static dependencies of CubesViewer all of them are loaded. I have configured the Cubes Server as follows:
flask_app.py
I am rendering my template cubesviewer.html like this:
Flask application is running on http://localhost:8000/. However when I try to access the http://localhost:8000/cubesviewer I always encounter this error:
Browser says: