Skip to content

Friday-13/dartblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rus

Blog-project based on Django.

main_page

About The Project

The goal of this project is creation of site with base blog functionality.

Frontend-part of this project is based on free open template Dart Blog (by DartThemes.com).

Key Features

  • Display a list of added posts;
  • Ability to add post to one of the categories;
  • Simple comment system;
  • Tag system;
  • Authorization system: registration, authorization, password change, etc;
  • View post, grouped by category, tag or author;
  • Search by post title;
  • Ability to format post content with Django CKEditor.

Screenshots and demonstaration

Screenshots and demonstration
  • A list of posts on main page post_list.png

  • A single post single_post.png

  • A user page user_page.png

  • An authorization form login_form.png

Built With

  • Django
  • CKEditor
  • Bootstrap
  • JQuery
  • isotope

DevTools

  • Poetry
  • djdebug

Usage

Prerequisites

  1. Install Python 3.11
  2. Install Poetry

Installation

  1. Clone the repository
$ git clone <% url %>   
  1. Go into the repository
$ cd dartblog
  1. Activate virtual environment, install dependencies and go into project folder
$ poetry shell
$ poetry install
$ cd siteblog
  1. Change the file ../setenv.sh Parameter values are recommended to be filled in as strings, inserting values between quotes (export PARAM='your_value')
  • SECRET_KEY - secret key. Can be generated like this:
$ python manage.py shell
>>> from django.core.management.utils import get_random_secret_key
>>> print(get_random_secret_key())
# Copy and paste the resulting string between '' into SECRET_KEY
>>> exit()
  • SMTP_HOST - the host to use for sending email (EMAIL_HOST variable in siteblog/settings.py);
  • SMTP_EMAIL - username to use for the SMTP server (EMAIL_HOST_USER variable in siteblog/settings.py);
  • SMTP_PASS - password to use for the SMTP server (EMAIL_HOST_PASSWORD variable in siteblog/settings.py); More information about these values can be found in Django docs.

Note You may also need to change the EMAIL_PORT setting to match your host.

  1. Activate environment variables
$ . ../setenv.sh
  1. Collect static files
$ python manage.py collectstatic  
   
  1. Make and apply migrations
$ python manage.py makemigrations
$ python manage.py migrate
  1. Run test server
$ python manage.py runserver

Then you can work with the project in the same way as with any other django project: fill the database, create an administrator, and so on.

License

Distributed under the MIT License. See LICENSE.md for more information.

Contact

Dmitry Samsonenko - samsondm97@gmail.com

Acknowledgments

About

Project with base blog functionality based on Django.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published