Skip to main content

Django package to make blog creation easier

Project description

Django easy blog post is a package that allows you to create blog posts with a text editor to customize the content of your publication.

Quick Start

  1. Add post in your INSTALLED_APPS and update settings

INSTALLED_APPS = [
...
'ckeditor',
'ckeditor_uploader',
'post',
]

CKEDITOR_UPLOAD_PATH = "uploads/"
...
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'static'
MEDIA_URL = 'media/'
MEDIA_ROOT = BASE_DIR / 'media'
...
  1. update your project url

from django.conf.urls.static import static
from . import settings
from django.urls import path, include
urlpatterns = [
...
path('ckeditor', include('ckeditor_uploader.urls')),
] +static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  1. Install ckeditor and pillow

pip install django-ckeditor pillow
  1. Migrate your project and collect static

python manage.py migrations post
python manage.py migrate
python manage.py collectstatic
  1. Create super user, run your app and go to admin to create your blog post

  2. Use post_list tag to get all posts list on your template

{% load post_tags %}
<!DOCTYPE html>
...
<body>
    ...
        <p>My blogs</p>
    <div>
        {% for post in ''|post_list %}
            <h2>{{post.title}}</h2>
            <h2>{{post.content|safe}}</h2>
        {% endfor %}
    </div>
    ...
</body>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-easy-blog-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_easy_blog-1.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file django-easy-blog-1.0.1.tar.gz.

File metadata

  • Download URL: django-easy-blog-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for django-easy-blog-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6216d83fa7e2b3275fba2a04c7788fa26537100c7b27661f1355b50d643282fb
MD5 22fd66b6f2e2167e89133c14d1ee8ffe
BLAKE2b-256 0344ac6adb1d8c5ed6705eec7c1e59b7a04d54f0f4a8e0f627cc4bb1ca382e9f

See more details on using hashes here.

File details

Details for the file django_easy_blog-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_easy_blog-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bee40bffd07fda4d6d90d7a181e9db379b2d241dad08d52eb07b009b208f99d2
MD5 2dd144224a018f65f6cfb6c4083f0f3e
BLAKE2b-256 ed35a8f121f1b320cecfa0b7b531e4692c1ad6e29907d5ff08dd926bb4dae5d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page