Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abdullahrfa/django_rest_framework

Django REST Framework (DRF) is a powerful, flexible toolkit for building web APIs in Django. It simplifies API development with features like serialization, authentication, and viewsets, supporting formats like JSON and XML. DRF is highly customizable, integrates seamlessly with Django ORM, and is widely used for creating robust, scalable APIs.
https://github.com/abdullahrfa/django_rest_framework

django django-application django-framework django-project django-rest-framework

Last synced: 13 days ago
JSON representation

Django REST Framework (DRF) is a powerful, flexible toolkit for building web APIs in Django. It simplifies API development with features like serialization, authentication, and viewsets, supporting formats like JSON and XML. DRF is highly customizable, integrates seamlessly with Django ORM, and is widely used for creating robust, scalable APIs.

Awesome Lists containing this project

README

        

# Django_REST_framework

# Create the project directory

mkdir tutorial
cd tutorial

# Create a virtual environment to isolate our package dependencies locally

python3 -m venv env
source env/bin/activate # On Windows use `env\Scripts\activate`

# Install Django and Django REST framework into the virtual environment

pip install djangorestframework

# Set up a new project with a single application

django-admin startproject tutorial . # Note the trailing '.' character
cd tutorial
django-admin startapp quickstart
cd ..

# for runnig

python3 manage.py runserver

# for migrate

python manage.py migrate

# We'll also create an initial user named admin with a password. We'll authenticate as that user later in our example.

python manage.py createsuperuser --username admin --email [email protected]