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.

https://github.com/Aristofane1/blog_package/blob/main/screenshot1.PNG?raw=true

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.2.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.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-easy-blog-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 827f661593d34f3068ee9dc6449c84eb2701d3b33623477b9649f315ad57eecc
MD5 35ccc547fd2b5748e1014a8d32abd3a1
BLAKE2b-256 1ced71f7f50d06f810a7ef3dfc80552441e0cf6ec8dcda29557099efbc1e9e07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_easy_blog-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4722f4932a40a08d0d31c43b57abdba5f830b61e6ccf600d615a3716e5456e3d
MD5 2dcdfe378b6b2822087045e953df9967
BLAKE2b-256 7eff7d75b8a66e1533c9930d0d04a3f1542836a43f7917258df7319c325e13b0

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