This Django project is designed to manage and serve TV shows and movies.
- Clone the repository:
git clone https://github.com/Valijonzoda/media-site.git cd media-site
- Set up a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
Install the required dependencies:
pip install -r requirements.txt
Apply migrations and start the server:
python manage.py migrate
python manage.py runserver
- Access the admin interface at: http://127.0.0.1:8000/admin/
- API endpoints for shows and movies:
- Get shows: http://127.0.0.1:8000/api/shows/
- Get a specific show: http://127.0.0.1:8000/api/shows/{show_id}/
- Get show seasons: http://127.0.0.1:8000/api/shows/{show_id}/seasons/
- Get show episodes: http://127.0.0.1:8000/api/shows/{show_id}/episodes/
- Get episode sources: http://127.0.0.1:8000/api/episodes/{episode_id}/sources/
To run the project using Docker, follow the Dockerfile and instructions in the repository.