Giter VIP home page Giter VIP logo

Comments (5)

christabor avatar christabor commented on August 11, 2024

Looks like an issue with the paginator named tuple. I'll take a look.

from flask_jsondash.

christabor avatar christabor commented on August 11, 2024

What method did you use to start the app up -- via pypi installation + import, or clone from github + run included app?

from flask_jsondash.

minimaxir avatar minimaxir commented on August 11, 2024

Clone, python setup.py install for dependencies, then python app.py.

from flask_jsondash.

christabor avatar christabor commented on August 11, 2024

Ok thanks, I'll have a look. Just by chance, does this happen if you do an install via pypi and then import it into your own app (you'll have to have a python app importing the module, as well as the right template variables set - this repo has examples of that setup at the top level).

I just did a test using the above method and it appears to work fine, so I'm guessing it might have something to do with the local setuptools install.

from flask_jsondash.

christabor avatar christabor commented on August 11, 2024

Did some testing so far, and the following methods seem to work:

Method 1 - virtualenv + setuptools

git clone https://github.com/christabor/flask_jsondash.git jsondash-test
cd jsondash-test
virtualenv env
source env/bin/activate
python setup.py install
python app.py

then to test:

curl -XGET http://localhost:5002
<a href="/charts">Visit the charts blueprint.</a>%

Method 2 - virtualenv + pypi + local app

mkdir jsondash-test ; cd jsondash-test
virtualenv env
source env/bin/activate
pip install flask-jsondash

(then, copying the example app and templates from a different dir)

cp -r ../flask_jsondash/templates ../flask_jsondash/app.py .
python app.py

then to test:

curl -XGET http://localhost:5002
<a href="/charts">Visit the charts blueprint.</a>%

from flask_jsondash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.