using django , drf authentication
-
Clone the repository:
git clone - https://github.com/Ainy07/Django-Blog-Application/ cd blog_project
-
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt
-
Apply migrations:
python manage.py makemigrations python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
- Obtain Token:
POST /api/token/
- Refresh Token:
POST /api/token/refresh/
- List and Create:
GET, POST /api/posts/
- Retrieve, Update, Delete:
GET, PUT, DELETE /api/posts/{id}/
- List and Create:
GET, POST /api/posts/{post_id}/comments/
This setup should give you a functional Django blog application with basic CRUD functionalities and token-based authentication.