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
- Host: GitHub
- URL: https://github.com/m4tice/python-login-template
- Owner: m4tice
- Created: 2025-03-03T12:33:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-24T15:01:04.000Z (about 1 year ago)
- Last Synced: 2025-05-24T15:58:50.353Z (about 1 year ago)
- Topics: authentication, flask, login, logout
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
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)