A simple blog app with Django framework
This repository is a simple weblog app written in Python3/Django.Although this is a basic form of a weblog but it supports the regular features of a blog app such as Authentication and Authorization system(log the user in , log him out ,etc) using the django session framework and CRUD proccess(create,read,update and delete).
The project has running on this link for online testing http://vahid75.pythonanywhere.com/
- Python 3
- Django 2.2
- Bootstrap 4
This project devided to 3 main apps.
- chat app
- authenticate app
- search app
Other apps such taggit is third party apps for preparing tags for a blog entry. Chat app is the core of this project that consists of models for blog posts and handling post create forms with ModelsForms. Search app is a app for search through post based on titles or every post keywords. Authenticate stand for authenticating users or creatning new users.
If you want to run this app in your Django project , follow add to your project or for run it in a blank project go to build a project
-
download the
chat
directory in your project folder. -
add app to your project settings.py
chat.apps.ChatConfig)
and add these to your rooturlconf
:path('chat/', include('chat.urls'))
-
making a virtualenv named venv using
virtualenv venv
-
activate it using this step in UNIX os families
source venv/bin/activate
-
in WINDOWS
cd venv/bin/; ./activate
-
install requirements
pip3 install -r requirements.txt
-
now clone the whole repository.
-
for UNIX systems in terminal type
./manage.py runserver
-
or in WINDOWS type in console
py manage.py runserver
-
open the http://127.0.0.1:8000/ in your browser