This project is built using Django Rest Framework (DRF), a powerful and flexible toolkit for building Web APIs with Django. It provides a comprehensive set of features for developing robust, secure, and scalable RESTful APIs.
- Easy Serialization: Convert complex data types like Django models into native Python data types that can be easily rendered into JSON, XML, or other content types.
- Authentication & Permissions: Robust built-in mechanisms for handling authentication and permissions.
- Browsable API: A web-based interface for interacting with your API, enhancing developer productivity.
- Viewsets & Routers: Simplify the creation of CRUD operations with viewsets and routers.
- Flexible Request Parsing: Support for multiple request formats.
- Testing Utilities: Tools for testing APIs to ensure reliability and correctness.
- Python 3.12.0
- Django 5.0.6
- Django Rest Framework 3.15.1
-
Clone the repository:
git clone https://github.com/sMmominur/django_rest_framework.git cd drf-project
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run database migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
drf-project/
├── core/
│ ├── migrations/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── serializers.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── drf_project/
│ ├── __init__.py
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── manage.py
└── requirements.txt