Code Monkey home page Code Monkey logo

yatube_project's Introduction

Yatube: A Social Network for Bloggers

Yatube is a Django-based social network for bloggers, where users can create personal diaries, follow other authors, and comment on their posts. The project is designed with simplicity and usability in mind, allowing users to easily navigate and interact with the platform.

Features

  • User registration and profile creation
  • Personalized author pages displaying all posts
  • Following other authors and viewing their content
  • Commenting on posts
  • Unique username and address selection during registration
  • Basic text formatting for a clean and simple post appearance
  • Community groups for browsing various authors' content
  • Admin interface for moderating posts and blocking users

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/yatube.git
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Configure your database settings in yatube/settings.py.

  2. Run migrations:

python manage.py migrate
  1. Start the development server:
python manage.py runserver

Now you can access the Yatube web application at http://127.0.0.1:8000/.

Models

Yatube consists of four main models: Group, Post, Comment, and Follow.

Group

The Group model represents a community where users can share their posts. Each group has a unique slug and a description.

Post

The Post model represents a user's diary entry. Posts contain text, a publication date, an author, an optional group, and an optional image. Posts are ordered by publication date in descending order.

Comment

The Comment model allows users to leave comments on posts. Each comment is linked to a post and an author, and has a publication date.

Follow

The Follow model represents the relationship between users and the authors they follow. A unique constraint ensures that each user can follow an author only once.

Future improvements

  • Encourage and reward top authors
  • Improve spam and bot prevention
  • Implement a more customizable design
  • Add additional social features, such as likes and shares

License

This project is licensed under the MIT License. See the LICENSE file for details.

yatube_project's People

Contributors

4erdenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.