Welcome to the Django Blogging Website! This is a simple blogging platform built using Django.
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)
- Clone the repository:
git clone https://github.com/your-username/django-blog.git
- Navigate to the project directory:
cd django-blogging-website
- Install dependencies using Pipenv:
pipenv install
- 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.
- Apply database migrations:
python manage.py migrate
Start the development server:
python manage.py runserver
Visit http://localhost:8000/ in your web browser to access the blogging website.
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.