# Podcastrr - Solution to 500 Internal Server Error ## Problem The application was returning a 500 Internal Server Error when accessing the root URL. This was likely due to the database not being properly initialized with the required tables. ## Solution 1. Created all necessary templates and CSS files for the application 2. Created a database initialization script (`init_db.py`) to create the required tables and default settings 3. Ran the initialization script to set up the database ## How to Run the Application 1. Make sure you have all the dependencies installed: ``` pip install -r requirements.txt ``` 2. Initialize the database (if you haven't already): ``` python init_db.py ``` 3. Run the application: ``` python main.py ``` 4. Open your browser and navigate to `http://localhost:5000` ## What to Expect You should now see the home page of the Podcastrr application instead of a 500 Internal Server Error. The application allows you to: - Search for podcasts - Track podcasts - Download podcast episodes - Configure download settings ## Troubleshooting If you still encounter issues: 1. Check that the database file (`instance/podcastrr.db`) exists and is not empty 2. Verify that all required templates are in the `templates` directory 3. Ensure that the CSS file is in the `static/css` directory 4. Check the application logs for specific error messages