BlogSpace is a simple blog website built with Django.
It allows users to register, log in, create blog posts, edit or delete their own posts, like posts, and comment on posts.
- User registration and login
- Secure logout
- Create blog posts
- Edit and delete own blog posts
- View all blog posts
- Blog details page
- Comment system
- Like and unlike feature
- View count for each blog
- User profile page showing own blogs
- Django admin panel support
- Rich text blog content using CKEditor5
- Python
- Django
- HTML
- CSS
- SQLite
- CKEditor5
homepage.html— Homepageposts.html— Shows all blog postsblog_details.html— Shows full blog details, likes, comments, and viewsprofile.html— Shows logged-in user’s own blog postslogin.html— Login pageregister.html— Registration pagecreate_edit.html— Create and edit blog post page
Users can:
- Register
- Log in
- Log out
Authenticated users can:
- Create blog posts
- Edit their own posts
- Delete their own posts
Users can:
- View full blog content
- Like or unlike a post
- See total likes
- See total views
- Read comments
- Add comments if logged in
Users can:
- See their own posts
- Edit or delete their own posts
- Open blog details from profile
git clone https://github.com/rohan9932/blogspace.git
cd blogspacepython -m venv .venvOn windows,
.venv\Scripts\activateOn MacOs/Linux,
source .venv/bin/activatepip install -r requirements.txtpython manage.py makemigrations
python manage.py migratepython manage.py createsuperuserpython manage.py runserverYou can access the admin panel at:
http://127.0.0.1:8000/admin/From there, admin can manage:
- Users
- Blog posts
- Comments
Notes
- CKEditor5 is used for rich text blog writing.
- Only logged-in users can create, edit, delete, like, and comment.
- Users can only edit or delete their own posts.
- Delete requests are handled using POST for safety.