Skip to content

ameyrane98/Blogging_Site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

17 Commits
 
 
 
 

Repository files navigation

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

About

A blogging site to learn CRUD operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published