1saptarshi / 1saptarshi/password-auto-generator

password-auto-generator Common Issues

Aperta
#1 0 commenti 0 reazioni 1 assegnatario Rivendicata da @1saptarshi Vedi su GitHub
bug enhancement help wanted
Lingua principale
HTML
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.