KanchanCS / social_blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social Blog Project

This is a social blog project built using Django and Python, where users can follow each other and see recent posts from users they follow.

Prerequisites

Before running the project, make sure you have the following installed on your system:

  • Python (version 3.x)
  • Django (version 3.x)

Getting Started

Follow these instructions to set up and run the project on your local machine:

  1. Clone the repository:
git clone <repository_url>
cd social-blog-project
  1. Create a virtual environment (optional but recommended):
# On Windows
python -m venv venv
venv\Scripts\activate

# On macOS/Linux
python3 -m venv venv
source venv/bin/activate
  1. Install the project dependencies:
pip install -r requirements.txt
  1. Set up the database:
python manage.py migrate
  1. Create a superuser (admin) account:
python manage.py createsuperuser
  1. Run the development server:
python manage.py runserver
  1. Access the application:

Open your web browser and go to http://localhost:8000/ to access the project.

Project Structure

Briefly explain the directory structure of your project, highlighting key files and directories.

  • app_name/: Contains the main Django app (you can change "app_name" to your actual app name).
  • templates/: Contains HTML templates for the views.
  • static/: Contains CSS, JavaScript, and other static files.
  • manage.py: Django's command-line utility for managing the project.
  • requirements.txt: List of project dependencies.

Features

Explain the main features of your social blog project here, like:

  • User registration and login.
  • User profiles and follow functionality.
  • Displaying recent posts from followed users.

About


Languages

Language:Python 66.6%Language:HTML 32.8%Language:CSS 0.6%