This is a Django-based Blog application with Django Rest Framework (DRF) integration for API functionalities.
- User Authentication: Register, login, and manage profiles.
- Blog Creation: Write and edit blog posts (editing is only available to authors).
- Dashboard: Displays the 8 most recent blogs.
- Profile Page: Shows all blogs created by the logged-in user.
- Blog Deletion: Users can delete their own posts.
- Admin Authorization: Blocks unauthorized users from accessing the Django Admin panel (403 page for unauthorized access).
- Python 3.x
- Django 4.x
- Django Rest Framework
-
Clone the repository:
git clone https://github.com/RitwikGupta-0501/Blog.git cd Blog
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Access the site at
http://127.0.0.1:8000/
.
/api/blogs/
: Get all blogs./api/blogs/<id>/
: View, edit, or delete a specific blog post./api/users/
: User registration and profile management.
- Commenting and liking posts.
- Search functionality.
- Pagination for large datasets.
- Categories and tags for better organization.
- Enhanced SEO features.
Feel free to submit pull requests or open issues to discuss any changes.
This project is licensed under the MIT License.
You can modify the sections as needed and add more specific details based on your project’s features.