AndreConforti / my-first-blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Blog Project - my-first-blog

This is a simple blog project created with Django. It allows users to create, edit, and publish blog posts. Built with a PostgreSQL database

Installation (Linux)

  1. Clone the repository
git clone https://github.com/AndreConforti/my-first-blog.git
  1. Create a virtual environment:
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the requirements:
pip install -r requirements.txt
  1. Run the migrations:
python manage.py migrate
  1. Create a superuser:
python manage.py createsuperuser
  1. Run the server:
python manage.py runserver

Usage

To access the blog, open a web browser and go to http://localhost:8000/. To be able to add, edit and delete posts, you must log in as an administrator at the link http://localhost:8000/admin/ and you must access with the superuser credentials created previously.

To create a new blog post, click on the "New Post" button on the top right corner of the page.

To edit an existing blog post, click on the post's title and then click on the "Edit" button.

To delete a blog post, click on the post's title and then click on the "Delete" button.

Credits

This project was created following the Django Girls tutorial (https://tutorial.djangogirls.org/).

About


Languages

Language:Python 74.3%Language:HTML 18.8%Language:CSS 6.9%