grapeJUICE1 / django-blog

a simple blog made with django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blugg

A simple blog made with django

Features

  • admin can create post
  • user can see posts
  • user can share post through email
  • user can search post
  • user can comment on a post
  • post uses markdown

Running locally

To run this project simply download this repo, then create a virtual environment in the directory.

more info on virtualenv and how to make one at here

then install all dependencies

pip install -r requirements.txt --no-index --find-links file:///tmp/packages

more info at here

after that create a .env file in the directory

it should have the following things

DB_USER=""
DB_NAME=""
DB_PORT=""
DB_PASSWORD=""
EMAIL_ADRESS=""
EMAIL_HOST=""
EMAIL_PASSWORD=""

DB_USER ,DB_NAME,DB_PORT,DB_PASSWORD are database info that u need to provide , this projects uses postgresql

Also this project uses gmail to send emails , so you have to use a gmail account and put in the credentials here , you can ofcourse use other smtp servers

The project uses postgresql , you can change it to sqlite or others in settings.py

then run

python manage.py makemigrations blog

python manage.py migrate

python manage.py runserver

then visit to http://127.0.0.1:8000/blog/ and you should see the website

Screenshots

home

single post

comments

share post

About

a simple blog made with django


Languages

Language:CSS 59.5%Language:Python 24.2%Language:HTML 13.1%Language:JavaScript 3.2%