GithubHelp home page GithubHelp logo

openshift-roadshow / nationalparks-py Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 1.0K 180 KB

Backend component to display national parks (Python).

License: Apache License 2.0

Python 93.72% Dockerfile 6.28%

nationalparks-py's People

Contributors

blues-man avatar bmeklund avatar grahamdumpleton avatar jorgemoralespou avatar mpryc avatar wzzrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nationalparks-py's Issues

Add itsdangerous version to requirements.txt

I am receiving the following error trying to build the image:

[pid 65:tid 139664763451584] File "/opt/app-root/lib64/python3.8/site-packages/flask/json/init.py", line 15, in
[Wed Mar 09 13:15:41.284667 2022] [wsgi:error] [pid 65:tid 139664763451584] from itsdangerous import json as _json
[Wed Mar 09 13:15:41.284677 2022] [wsgi:error] [pid 65:tid 139664763451584] ImportError: cannot import name 'json' from 'itsdangerous' (/opt/app-root/lib64/python3.8/site-packages/itsdangerous/init.py)

Adding itsdangerous==2.0.1 to requirements.txt resolves the problem.

Trailing slashes in URLs

Some of the routes here use a trailing slash, such as /ws/healthz/, some don't, such as /ws/data/all. Since you are using flask, the redirect from /ws/healthz to /ws/healthz/ Just Works™, while not the other way around. Using routes with trailing slashes everywhere might be less confusing.

See the Unique URLs / Redirection Behavior in Flask Quickstart.

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.