Skip to content

4yub1k/djblog

Repository files navigation

My Blog

My blog is simple neat and clean blog site built with Django, HTMX, and Bootstrap 5.

Release 1.4.1:

Search Box

Search box added, Now you can search a word in blogs.

Release 1.3.1:

For blog views, Tests Added. Including Login, Registration, Pages, Permissions.

Release 1.2.0:

Sitemap Added

image

Release 1.1.0:

Summernote WYSIWYG Editor Added

image


Download:

git clone https://github.com/4yub1k/djblog.git
cd djblog

Setup Env:

python -m venv .venv

Activate Env:

.venv\Scripts\activate

Install Requirements:

Make sure Virtual Environment is enabled/activated

pip install -r requirements.txt

Set Environment Variable:

set SECRET_KEY=YOUR_SECRET_KEY_FROM_SETTINGS.PY
set DEBUG=True

Static files:

python manage.py collectstatic

Mirgate:

python manage.py makemigrations
or
python manage.py makemigrations blog

python manage.py migrate

Create Super User:

python manage.py createsuperuser

Start blogging:

python manage.py runserver

Now go to login page enter super user credentials.

Tests:

pytest

Home Page:

image

Login Page:

image

Registration Page:

image

Edit Post:

image

Post:

image

Sitemap:

image

Search Box:

2023-02-18 20_50_24-Window

Buy me a coffee ☕️