4 - Building list & detail views
5 - Creating templates for views
7 - Pagination using Classed Based views
10 - Model & Admin for Comment
11 - Creating ModelFrom & handel in View
12 - Adding comment to post detail template
13 - Add tag to Post with django-taggit
14 - Retrieving posts by similarity
15 - total_tags using simple_tag
16 - show_latest_post tag using inclusion_tag
17 - get_most_commented_posts tag using simple_tag
21 - Steaming and Ranking results
- 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
- cd desktop
- virtualenv blogen
- cd blogen
- .\scripts\activate
- mkdir src && cd src
- git clone https://github.com/learnwithcode/Building-a-blog-Application.git . <=notice include period
- pip install -r requirements.txt
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