Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.48 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.48 KB

Django Blogging Website

Welcome to the Django Blogging Website! This is a simple blogging platform built using Django.

Table of Contents

Getting Started

Prerequisites

Before you begin, ensure you have the following installed on your machine:

  • Python (version 3.x)
  • Django (version 4.x)
  • Pipenv (for virtual environment management)

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/django-blog.git
    
  2. Navigate to the project directory:
 cd django-blogging-website
  1. Install dependencies using Pipenv:
pipenv install

Configuration

  1. Create a .env file in the project root and configure the following settings:
DEBUG=True
SECRET_KEY=your_secret_key
DATABASE_URL=sqlite:///db.sqlite3

Update your_secret_key with a secure Django secret key.

  1. Apply database migrations:
python manage.py migrate

Running the Project

Start the development server:

python manage.py runserver

Visit http://localhost:8000/ in your web browser to access the blogging website.

Usage

Create a superuser to manage the admin panel:

python manage.py createsuperuser

Access the Django admin panel at http://localhost:8000/admin/ to manage blog posts and users.