Git Product home page Git Product logo

python-flask-sample-app's Introduction

Flaskr an example application written in Python/Flask

Flask plus Codefresh

Original source code from https://github.com/pallets/flask/tree/master/examples/tutorial

Docker instructions

To create a docker image execute:

docker build . -t flaskr

To run the docker image execute:

docker run -p 5000:5000 flaskr and visit with your browser http://localhost:5000

To run unit tests inside the container execute:

docker run -it flaskr /bin/sh

and then in the new command promt run

pip install pytest && pytest

To use this project in Codefresh

There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform.

More details can be found in Codefresh documentation

#Edit 3

python-flask-sample-app's People

Contributors

dustinvanbuskirk avatar kkapelon avatar kostis-codefresh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

python-flask-sample-app's Issues

why dose this happen, i'm going to crazy, can you help me?

i don't know why

TemplateNotFound
jinja2.exceptions.TemplateNotFound: index.html

Traceback (most recent call last)
File "C:\Users\14676\pythonProject\lib\site-packages\flask\app.py", line 2551, in call
return self.wsgi_app(environ, start_response)
File "C:\Users\14676\pythonProject\lib\site-packages\flask\app.py", line 2531, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\14676\pythonProject\lib\site-packages\flask\app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\14676\pythonProject\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\14676\pythonProject\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\14676\pythonProject\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "C:\Users\14676\PycharmProjects\pythonProject\venv\app.py", line 7, in index

flaskr/auth.py

in flaskr/auth.py
the line (from flaskr.db import get_db) produces " ModuleNotFoundError: No module named 'flaskr' " error

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.