A Django-based Learning Management System (LMS) with bot integration for quiz management and automated responses.
LGS Bot is a comprehensive platform designed to manage quizzes and learning materials. It integrates with a bot service to provide automated responses and quiz management capabilities.
LGS_bot/
├── lgs/ # Main Django app
│ ├── models.py # Database models
│ ├── views.py # View handlers
│ ├── admin.py # Django admin configuration
│ ├── migrations/ # Database migrations
│ └── tests.py # Application tests
├── lgs_bot/ # Django project settings
│ ├── settings.py # Project settings
│ ├── urls.py # URL routing
│ ├── asgi.py # ASGI configuration
│ └── wsgi.py # WSGI configuration
├── bot/ # Bot service
│ └── bot.py # Bot implementation
├── media/ # User-uploaded files
├── docker-compose.yml # Docker compose configuration
├── Dockerfile # Main application Dockerfile
├── manage.py # Django management script
├── requirements.txt # Python dependencies
└── db.sqlite3 # SQLite database
- Python 3.x
- Django
- Docker (optional, for containerized deployment)
-
Clone the repository
cd LGS_bot -
Create a virtual environment
python -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
-
Start the development server
python manage.py runserver
Build and run using Docker Compose:
docker-compose up --build- Quiz Management: Create, edit, and manage quizzes
- Subject Organization: Organize quizzes by subject
- Bot Integration: Automated bot responses and interactions
- Media Support: Upload and manage quiz images
- Admin Panel: Django admin interface for content management
- Access the Django admin panel at
http://localhost:8000/admin/ - Create subjects and quizzes through the admin interface
- Upload quiz images as needed
- The bot service will handle automated interactions based on configured rules
The application uses SQLite with the following main models:
- Subject: Quiz subject categories
- Quiz: Quiz questions and content
- Quiz Images: Associated media for quizzes
Edit lgs_bot/settings.py to configure:
- Database settings
- Installed apps
- Static files paths
- Bot settings
- Database migration errors: Run
python manage.py makemigrationsthenpython manage.py migrate - Missing dependencies: Run
pip install -r requirements.txtagain - Port already in use: Change the port with
python manage.py runserver 8001
Follow Django best practices and ensure all tests pass before submitting changes.
For issues or questions, please open an issue in the repository.