This is a Django project with admin panel for managing TV app content.
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser (admin account):
python manage.py createsuperuser
Follow the prompts to create your admin account.
-
Run the development server:
python manage.py runserver
-
Access the admin panel: Open your browser and go to:
http://127.0.0.1:8000/admin/Login with the superuser credentials you created.
The project is configured to use MySQL with the following settings:
- Database:
prayer2 - Host:
localhost - Port:
8889 - User:
prayer2
Make sure MySQL is running and the database exists before running migrations.
config/- Django project configurationcore/- Main application with models and adminmanage.py- Django management scriptrequirements.txt- Python dependencies
- Category: For organizing content
- Content: Main content model with title, description, video URL, etc.
The admin panel includes:
- Category management
- Content management with filtering and search
- User authentication
- Media file handling