This is a Django REST Framework (DRF) project that provides an FAQ API with multilingual support (English, Hindi, Bengali). It uses:
- Django & DRF for API Development
- Redis for caching API responses
- Google Translate API for automatic translations
- django-ckeditor for WYSIWYG answer formatting
git clone https://github.com/YOUR_USERNAME/multilingual-faq-api.git
cd multilingual-faq-api
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
Start Redis:
redis-server
(Linux/Mac)
For Windows, install Memurai.
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Now, open:
- API: http://127.0.0.1:8000/api/faqs/
- Admin Panel: http://127.0.0.1:8000/admin/
curl http://127.0.0.1:8000/api/faqs/
curl http://127.0.0.1:8000/api/faqs/?lang=hi
curl http://127.0.0.1:8000/api/faqs/?lang=bn
- Django & Django REST Framework (DRF)
- Redis for caching
- Google Translate API for auto-translation
- SQLite (default)
Want to contribute? Follow these steps:
- Fork the repo.
- Create a new branch:
git checkout -b feature-name
. - Commit your changes:
git commit -m "feat: Added XYZ feature"
. - Push to the branch:
git push origin feature-name
. - Open a Pull Request.
This project is MIT Licensed. Feel free to use and modify.
For issues, contact: your.email@example.com
GitHub: YourUsername
Happy Coding!