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.

django admin custom

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. Migrate your project and collect static

python manage.py makemigrations 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.3.tar.gz (4.9 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.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-easy-blog-1.0.3.tar.gz
  • Upload date:
  • Size: 4.9 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.3.tar.gz
Algorithm Hash digest
SHA256 b00217df752dddc68a69adbc73b218b4dd23fc4537bfc80f8c60a8ebecb80042
MD5 c04b483aabb865eebb5d43b138976974
BLAKE2b-256 4d6df537153855ba5ceaaf3f2b6562318eafb95e53878ac3bafbf538d991eb6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_easy_blog-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5840ef6f3c9e55e6663b27632730d0e27848d84754c4a096de0a75512bc9113
MD5 1ee34d4fcf0c650e0b38e01719f5e36a
BLAKE2b-256 68bb24101c1a8649fb2585a000a5ffabbd49203abd9ee3893b66586e1b4eb23e

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