- Custom User Model
- Custom forms for Creating and Editing Users using UserCreationForm and UserChangeForm
- Login/Logout/Sign Up functionality using Class based Views
- Password Change Functionality
- Password Reset Functionality
- Blog Add, List, View, Update and delete functions
- User Specific data
- Add Comments
- Edit and Delete Comments
- Permission and Authorization
- Add search function
- Add tags using taggit
- Show blog post accordings to tags
- Add custom template tags
- Add recommended post, lastest post and most commented post in detail view
- Pagonation
- Integrate CKeditor
- Pagination in Comment
- Update using Class based View
To setup and run project locally on your machine then follow these simple steps
- Create a directory for this project and clone this project:
mkdir blog
cd blog
git clone https://github.com/ishanshre/DjangoBlogV2.git .
- Create a virtual env using python
python -m venv venv
- The project directory looks like:
- Install docker, docker-compose and docker-scan
sudo pacman -S docker docker-compose docker-scan
- Build and run the docker container
docker-compose up -d --build
- Run migrate command
- Run collectstatic commands
docker-compose exec web python manage.py collectstatic
- Create super user account
docker-compose exec web python manage.py createsuperuser
- Now you are good to go
127.0.0.1:8000