Skip to content

Timochik/Project_social_media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Django Social Network

A simple social network web application built with Django. Users can register, create posts, follow/unfollow others, like and comment on posts, and edit their profiles with images and bios.

Features

  • User registration and authentication
  • User profiles with profile pictures and bios
  • Edit profile (bio and image)
  • Create, view, and list posts
  • Follow/unfollow other users
  • Personalized feed (posts from followed users)
  • Like/unlike posts
  • Comment on posts
  • Admin interface for all models

Setup Instructions

1. Clone the repository

git clone <your-repo-url>
cd <your-project-directory>

2. Create and activate a virtual environment

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

3. Install dependencies

pip install django crispy-bootstrap5 django-crispy-forms

4. Apply migrations

python manage.py makemigrations
python manage.py migrate

5. Create a superuser (optional, for admin access)

python manage.py createsuperuser

6. Run the development server

python manage.py runserver

7. Media files

  • Make sure you have a media/profile_pics/ directory in your project root.
  • Default profile images should be placed in media/profile_pics/default.png.

Usage

  • Register a new user or log in.
  • Edit your profile to add a bio and profile picture.
  • Create posts, follow other users, like and comment on posts.
  • Visit user profiles to follow/unfollow or see their posts.

Project Structure

  • main/ - Main Django app (models, views, templates)
  • website/ - Project configuration (settings, urls)
  • media/ - Uploaded profile images

License

MIT

About

This an application for social Media

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages