Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.08 KB

README.md

File metadata and controls

61 lines (40 loc) · 2.08 KB

README for Blogging Site with CRUD Operations

This README provides a brief overview of a Python-based blogging site with CRUD (Create, Read, Update, Delete) operations using Django version 3.10.13 and Django version 5.0.4.

Setup Instructions: Install Python 3.10.13: If you haven't already, download and install Python 3.10.13 from the official Python website.

Install Django 5.0.4: After installing Python, open a terminal/command prompt and install Django 5.0.4 using pip:

Copy code pip install Django==5.0.4 Clone the Repository: Clone the repository containing the blogging site code:

bash Copy code git clone <repository_url> Navigate to Project Directory: Move to the project directory:

bash Copy code cd <project_directory> Run Migrations: Apply migrations to create necessary database tables:

Copy code python manage.py migrate Create Superuser: Create a superuser to access the Django admin interface:

Copy code python manage.py createsuperuser Run Development Server: Start the Django development server:

Copy code python manage.py runserver Access the Site: Open a web browser and go to http://127.0.0.1:8000/ to access the blogging site.

Functionality: CRUD Operations: The site allows users to perform CRUD operations on blog posts, including creating, reading, updating, and deleting posts.

User Authentication: User authentication is integrated, allowing users to register, log in, and log out. Only authenticated users can perform CRUD operations.

Admin Interface: The Django admin interface is available at http://127.0.0.1:8000/admin/. Use the superuser credentials created earlier to access it.

Project Structure: Models: Contains Django models for the Post and Comment objects.

Views: Includes views for rendering HTML templates and handling CRUD operations.

Templates: Contains HTML templates for rendering pages.

Forms: Includes Django forms for user input validation.

Static Files: Stores static files such as CSS, JavaScript, and images.

Urls: Defines URL patterns for routing requests to views.

Settings: Contains Django project settings.

Dependencies: Python 3.10.13 Django 5.0.4