An open API service indexing awesome lists of open source software.

https://github.com/m4tice/python-login-template

A web login template using python and Flask
https://github.com/m4tice/python-login-template

authentication flask login logout

Last synced: 28 days ago
JSON representation

A web login template using python and Flask

Awesome Lists containing this project

README

          

# python-authentication-template
A web authentication template using python and Flask

# Error documentation
##### **1. ModuleNotFoundError when executing pytest**
###### Error message
```
ModuleNotFoundError: No module named 'app'
```
###### Action
```
pytest -vv
```
###### Solution
Execute
```
python -m pytest
```
###### Explanation
* Running pytest with the python -m pytest command helps with this exact thing.
* Since your current package is not yet in your $PYTHONPATH or sys.path - pytest gets this error.
* By using python -m pytest you automatically add the working directory into sys.path for running pytest. Their documentation also mentions:
> This is almost equivalent to invoking the command line script pytest

*Ref.:* [Py.test No module named *](https://stackoverflow.com/questions/20985157/py-test-no-module-named)