Skip to content

learnwithcode/Building-a-blog-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building A Blog Application

0 - Initial Commit

Creating A blog Application

1 - Building Post Model

2 - Creating Admin Site

3 - Custom Model Manager

4 - Building list & detail views

5 - Creating templates for views

6 - Adding Pagination

7 - Pagination using Classed Based views

Enhancing Blog with Advanced Features

Sending Mail With Django

8 - Django Form in views

9 - Sending Email with Django

Adding Comment System

10 - Model & Admin for Comment

11 - Creating ModelFrom & handel in View

12 - Adding comment to post detail template

Adding Tagging Functionality

13 - Add tag to Post with django-taggit

14 - Retrieving posts by similarity

Extending blog Application

Creating custom template tags and filter

15 - total_tags using simple_tag

16 - show_latest_post tag using inclusion_tag

17 - get_most_commented_posts tag using simple_tag

Implementing full text search with PostgreSQL

20 - Building a Search View

21 - Steaming and Ranking results

22 - Weighting queries

CKeditor

23 - Adding Ckeditor

How to clone project

Install depndencies first

  • Download & Install python latest version if not
  • Download & Install Git if not
  • Download & Install Postgresql database Download and create password while installation process default name & username is postgres

Commands

open settings.py in src/mysite/ and uncomment postgres database settings and put your password of postgres you created above and add your smtp settings for share post by email
  • python manage.py migrate
  • python manage.py createsuperuser
  • python manage.py loaddata blog/fixtures/post.json
  • python manage.py loaddata blog/fixtures/tag.json
  • python manage.py collectstatic
  • python manage.py runserver