/BlogApp

Simple Blog App with Python-Django

Primary LanguagePython

BlogApp

Summary

     Blog project is a simple website where people can share articles about a topic. Every user who creates an account can share an article on any topic. People can read shared articles but they cannot write any articles without logging in. Every user has an profile page which consist of profile image and personal informations. Additionally, user can update their profile using this profile page. All articles are paginated and people can filter articles by title, author and text which is in article.

Technologies

     This project is coded using Python-Django and it uses PostgreSql as its database instead of Django's default SQlite database. Furthermore, frontend design of this project uses Bootstrap.

Layers

Blog

     Blog directory is consist of views, templates, models, urls about posts.

     models.py

         All models about posts is in this file. Such as, Post Model, Author model. Author Model is linked to the Post Model by one-to-many relationship.

     views.py

         This file links the items that are displayed in the UI with html templates.

     urls.py

         The file where the urls to show the views are set.

     templates

         All html templates for displaying items in this folder.

Users

     Views, models, urls, templates which are related to user are in this folder.

     models.py

         User model is in this directory.

     views.py

         Register, Login, Profile views are in here.

     urls.py

         Register, Login, Profile page urls are edited here.

     templates

         HTML templates created here to display registration, login and profile page.

Media

     Image Folder

     backgrounds

         Svg images which are used for design.

     profileImages

         The profile photos of registered user are kept in this folder.

     postImages

         The articles images are kept in here.

Images of Project

profile