/blog-website-by-Django

Website with Django framework that is blog with ability to post, subscribe user’s channels, show posts and interact with posts.

Primary LanguagePython

Blog website

Website with Django framework that is blog with ability to post, subscribe user’s channels, show posts and interact with posts

Installation

git clone https://github.com/SalahTawafsha/blog-website-by-Django.git
pip install -r requirements.txt
py manage.py migrate

Blog features

  • Login and register by django authentication
  • User can post and edit post
  • each post has a slug to show it in url
  • User can just post 3 posts per day
  • User can subscribe to other users
  • User receive notification when subscribed user post
  • User can comment on posts once in 30 seconds to prevent spamming bots
  • User can use chat gpt-3 to generate post
  • User can use chat gpt-3 to summarize post
  • User can use chat gpt-3 to fix grammar of post
  • User can read 3 posts per day from the blog
  • if user post or comment contains bad words it will be hidden by *** from other users
  • if user post or comment contains more than 3 bad words he will receive warning
  • if user received 3 warnings his account will be blocked for posting and comment for 10 days
  • paging for posts with 4 posts per page
  • APIs for functionality of the website

Usage

py manage.py runserver

Screenshots

Sign UP

Screenshot 2024-03-25 145025

Login

Screenshot 2024-03-25 145702

Home Screen

Screenshot 2024-03-25 150038

Create Post

Screenshot 2024-03-25 150227

  • we can just enter title for a post then click on generate By GPT

Screenshot 2024-03-25 150448

  • after some seconds the body will filled by post
  • Note that we can summarize the post or fix post grammers by buttons in bottom of form

Home Page after create the post

Screenshot 2024-03-25 151007

if try to add three posts then try to add forth in same day

image image

when click on post we can edit, summarize or fix grammer of post

image

if scroll down we can show like, dislike and comments sections

image

let's put like and comment

image image

try add new comment before 30 secound

image

enter a not owned post

image

  • we can show count of posts that visited today (just three posts are allowd in day)
  • we can subscribe user to show his posts I subscribed to this user

when a subscibed user create post, we will show notification in home screen

image

  • we can click on title to show post
  • we can click on delete to delete the notification
  • note that page contains just three posts and we can control paging from buttons in bottom of posts

when create comment with more that three bad words

Screenshot 2024-03-25 155209

image

  • note that user will show warning in start of page
  • also, comment will not added

when create post with more that three bad words

image

image

  • note that user will show warning in start of page
  • also, bad words will shown as ***

add post when user is blocked (when recived three warnings)

image