Skip to content

Latest commit

 

History

History
62 lines (53 loc) · 1.74 KB

README.md

File metadata and controls

62 lines (53 loc) · 1.74 KB

Twitter

A Django application looks like Twitter. I created it to practice Django. It does not completely look like Twitter. Not designed fully and doesn't have all functions on Twitter. Also accepted google signup. Django admin panel enabled.

Setup

  1. Clone project git clone https://github.com/adhnanshereef/twitter.git
  2. Change directory to project folder cd twitter
  3. Install Virtual Environment pip install virtualenv
  4. Create Virtual Environment python -m virtualenv env
  5. Use Virtual Environment "./env/Scripts/activate"
  6. Install Django pip install Django
  7. Install Pillow pip install Pillow
  8. Install alluth essentials for google authentication pip install django-allauth google-auth google-auth-oauthlib google-auth-httplib2

or pip install Django Pillow django-allauth google-auth google-auth-oauthlib google-auth-httplib2

  1. Make migrations python manage.py makemigrations
  2. Migrate python manage.py migrate
  3. Run server python manage.py runserver

Functions

  • Signup, Login, Logout
  • Edit User
  • Tweet
  • View Tweets
  • Like Tweet
  • View Profile
  • Follow
  • Following and Followers Page
  • Signup and Login with Google

Models

  1. User
  • Name
  • Username
  • Email
  • Website
  • Bio
  • Location
  • Avatar (Profile Picture)
  • Banner
  • Date Of Birth
  • Joined Date
  • Theme
  • Following and Followers
  • Is Online
  1. Tweet
  • Id
  • Content as text
  • User
  • Images
  • Like
  • Reply
  • Retweet
  • Views
  • Created Date
  • Updated Date (Currently there is no option to edit tweet)