1saptarshi / 1saptarshi/password-auto-generator

password-auto-generator Common Issues

Aberta
#1 0 comentários 0 reações 1 responsável Reivindicada por @1saptarshi Ver no GitHub
bug enhancement help wanted
Linguagem predominante
HTML
Estrelas
1
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.