amanasati11 / Django-Blog

This repository implements a Full-Featured Blog Website that uses Django as a backend framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django-Blog

Full-Featured Blog with Django web framework.

Screenshots

HomePage HomePage2 EditPost AddPost EditProfile SignUp LoginPage PasswordReset

Features

  • User Registration
  • User Login & Logout
  • User Profile
  • Create, Update, Edit & Delete Posts
  • Search
  • User Change Password
  • Password Reset
  • Customized admin panel

How To Use

Clone project & Install Requirements

Make sure you have already installed python3 and git.

$ git clone https://github.com/amanasati11/Django-Blog.git && cd django-blog
$ pip install -r requirements.txt

Migrate & Collect Static

$ cd src && python manage.py migrate
$ python manage.py collectstatic

Create Admin User

$ python manage.py createsuperuser

Run Server

$ python manage.py runserver

Enter your browser http://localhost:8000/. You can login via admin in http://localhost:8000/admin/.

Add Some Fake Posts

First add one another user from blog register page or admin panel.

$ python manage.py shell
>>> from blog.models import Post
>>> import json
>>> with open('posts.json') as f:
...     json_posts = json.load(f)
...
>>> for post in json_posts:
...     Post(title=post['title'], content=post['content'], author_id=post['user_id']).save()
...
>>> exit()

You can edit posts via admin panel or from corrent user added post.

About

This repository implements a Full-Featured Blog Website that uses Django as a backend framework.


Languages

Language:Python 50.3%Language:HTML 46.1%Language:CSS 3.6%