Skip to content

Maksim-Volosh/TwitPlex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitPlex

Description

TwitPlex is a platform for sharing thoughts, ideas and news. Here you can create and post tweets, share your opinion and be inspired by the content of other users. Keep track of the latest trends, join discussions, make new friends and chat with like-minded people. Join TwitPlex and discover endless opportunities to communicate and share ideas!

Content

Install

  1. Clone repository:

    git clone https://github.com/Maksim-Volosh/TwitPlex.git

    And go to repository folder

  2. Create environment an activate:

    Create environment:

    python -m venv .venv

    Activate venv:

    .venv\Scripts\activate
  3. Install requirements:

    pip install -r requirements.txt
  4. Create config file:

    Create in TwitPlex/ folder config.py file. In this file write this:

     SECRET_KEY = "Enter your secret key"
  5. Create your redis server:

    • Go to this website, and create an account or login.

    • After registration you will alredy have a redis db, if this not true, create a new redis db.

    • Go to database and copy: Public endpoint, Default user, Default user password and go to config.py.

    • Add to your config.py this:

      REDISURL = "Public endpoint"X
      REDISUSERNAME = "Default user"
      REDISPASSWORD = "Default user password"
  6. Create the superuser:

    python manage.py createsuperuser
  7. Create google oauth clientid for signin with google for djano application.

  8. Run server and go to admin panel:

    Run server.

    python manage.py runserver

    Go to admin panel http://127.0.0.1:8000/admin:

    • Log in as a previously created user.

    Go to Sites:

    • And create a new site with domein and name: http://127.0.0.1:8000/

    Go to Social applications:

    • And create a new Social application:

      Provider: Google

      Name: google

      Client id: "Your cliend id"

      Secret key: "Your secret key"

      • In input Sites you should be choice your site - http://127.0.0.1:8000/
    • Your form should be view this:

    image

    • On this tip we finished the settings

    After this, if you get error django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.:

    • Go to settings.py, find the SITE_ID and change the number of this variable to the id of your Sites. you can view this id in database.

    • For example i somehow have a id 3:

      image

Using

  • Go to terminal and write:

    python manage.py runserver

    I am Grateful, you has successfully installed the app 😍🥳🎉

Pssss!!!!... Click the star pls......

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published