Skip to content

This is a simple Music Player web application built using **Django**, my very first Django project! πŸŽ‰ I referred to YouTube tutorials to learn and implement this.

Notifications You must be signed in to change notification settings

ethical0101/Music-Player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 Music Player 🎡

This is a simple Music Player web application built using Django, my very first Django project! πŸŽ‰ I referred to YouTube tutorials to learn and implement this.

πŸš€ Features

  • Upload and play music files
  • Basic playback controls (Play, Pause, Next, Previous)
  • Playlist support
  • User-friendly interface

πŸ› οΈ Tech Stack

  • Backend: Django
  • Frontend: HTML, CSS, JavaScript
  • Database: SQLite (default with Django)

πŸ“Œ Setup Instructions

  1. Clone this repository:

    git clone https://github.com/ethical0101/Music-Player.git
    cd Music-Player
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Create a superuser to access the Django admin panel:

    python manage.py createsuperuser

    Follow the prompts to set up your admin account.

  6. Run the development server:

    python manage.py runserver
  7. Open http://127.0.0.1:8000/ in your browser.

🎡 Adding Songs via Admin Panel

  1. Access the Django admin panel by navigating to http://127.0.0.1:8000/admin.
  2. Log in using the superuser credentials you created earlier.
  3. In the admin panel, you’ll see a section for Songs (or the relevant model name).
  4. Click on Add Song and fill in the details:
    • Title: Name of the song.
    • Artist: Name of the artist.
    • Audio File: Upload the music file.
    • Lyrics: Add the lyrics (you can fetch them using test.py as explained below).
  5. Click Save to add the song to your music library.

🎀 Fetching Lyrics Using test.py

  1. Run the test.py script:
    python test.py
  2. When prompted, enter the name of the song you want to fetch lyrics for.
  3. The script will fetch the lyrics (if available) and display them in the terminal.
  4. Copy the lyrics and paste them into the Lyrics field when adding a song in the Django admin panel.

🎯 Future Improvements

  • Add user authentication
  • Implement music streaming
  • Enhance UI with modern design

πŸ“œ License

This project is open-source. Feel free to modify and improve! 😊


Repository Link

πŸ”— https://github.com/ethical0101/Music-Player


### Notes:
1. Ensure that your `test.py` script is functional and can fetch lyrics from a reliable source (e.g., an API or web scraping).
2. If your `test.py` script requires additional dependencies, mention them in the `requirements.txt` file.
3. If you have a specific structure for your models (e.g., `Song` model with fields like `title`, `artist`, `audio_file`, and `lyrics`), make sure it matches the instructions provided.

Let me know if you need further assistance! 😊

About

This is a simple Music Player web application built using **Django**, my very first Django project! πŸŽ‰ I referred to YouTube tutorials to learn and implement this.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages