Skip to content

This repository contains a Django-based blog application that allows users to create, view, edit, and delete blog posts. The application includes features such as commenting on posts and uploading images.

License

Notifications You must be signed in to change notification settings

yataknemogy/BlogApplicationPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Application

A Django-based blog application allowing users to create, view, edit, and delete blog posts. This application includes features such as commenting on posts and uploading images.

Features

  • Create, view, edit, and delete blog posts
  • Optional commenting on blog posts
  • Optional image uploads to blog posts
  • Admin interface for managing posts

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

Prerequisites

  • Python 3.x
  • Django 3.x
  • Virtualenv (optional but recommended)

Installation

  1. Clone the repository:

    git clone https://github.com/yataknemogy/BlogApplicationPython.git
    cd blog
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Create a superuser:

    python manage.py createsuperuser
  6. Run the development server:

    python manage.py runserver
  7. Access the application:

    • Go to http://127.0.0.1:8000 to view the blog.
    • Go to http://127.0.0.1:8000/admin to access the admin interface.

Usage

Creating a Post

  1. Log in to the admin interface at http://127.0.0.1:8000/admin.
  2. Click on "Posts" and then "Add Post".
  3. Fill in the title and content, then click "Save".

Viewing Posts

  • Visit http://127.0.0.1:8000 to see a list of all blog posts.
  • Click on the post title to view the detailed post.

Editing or Deleting a Post

  1. Log in to the admin interface at http://127.0.0.1:8000/admin.
  2. Click on "Posts" and then on the post you want to edit or delete.
  3. Make changes and click "Save" or click "Delete" to remove the post.

Additional Features

Comments

  1. Uncomment and configure the code related to comments in the blog app.
  2. Apply migrations and update admin settings to manage comments.

Image Uploads

  1. Uncomment and configure the code related to image uploads in the blog app.
  2. Install necessary dependencies (e.g., Pillow) and update settings for media files.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

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

About

This repository contains a Django-based blog application that allows users to create, view, edit, and delete blog posts. The application includes features such as commenting on posts and uploading images.

Topics

Resources

License

Contributing

Stars

Watchers

Forks