1saptarshi / 1saptarshi/password-auto-generator

password-auto-generator Common Issues

未关闭
#1 0 条评论 0 个 reaction 已指派 1 人 已被 @1saptarshi 认领 在 GitHub 查看
bug enhancement help wanted
主要语言
HTML
星标
1
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

## Common Issues

### 1. 404 Not Found for `/` or `/generate`
- **Cause:** The `index.html` file is not in the correct folder, or the folder is not named `templates`.
- **Solution:**
- Ensure your folder is named `templates` (all lowercase).
- Place `index.html` inside the `templates` folder.

### 2. Flask Not Installed
- **Cause:** Flask is not installed in your Python environment.
- **Solution:**
- Run `pip install flask` in your terminal.

### 3. Port Already in Use
- **Cause:** Another process is using port 5000.
- **Solution:**
- Stop the other process, or run Flask on a different port:
`app.run(debug=True, port=5001)`

### 4. Password Not Generating or API Not Working
- **Cause:** JavaScript fetch to `/generate` fails, or backend is not running.
- **Solution:**
- Make sure you started the Flask server with `python password.py`.
- Check browser console for errors.

### 5. Changes Not Reflected
- **Cause:** Browser cache or server not restarted.
- **Solution:**
- Hard refresh your browser (Ctrl+F5).
- Restart the Flask server after code changes.

---

If you encounter other issues, please open a new issue with:
- Steps to reproduce
- Error messages (if any)
- Your OS and Python version

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。