A Django project that models a real-world music library, featuring user and admin login, registration, and management of artists, albums, songs, and playlists.
To activate the virtual environment, run the following command in your terminal or command prompt:
python -m venv venv
venv\Scripts\activate
To install the required packages, run the following command:
pip install -r requirements.txt
To migrate and make migrations, run the following commands:
python manage.py makemigrations
python manage.py migrate
To create a superuser, run the following command:
python manage.py createsuperuser
To run the server, run the following command:
python manage.py runserver
To clear the database, use the following command:
python manage.py flush
You're all set!
Your Django project is now up and running! Open a web browser and navigate to http://localhost:8000
to see the project in action.