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
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'
...
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)
Install ckeditor and pillow
pip install django-ckeditor pillow
Migrate your project and collect static
python manage.py migrations post
python manage.py migrate
python manage.py collectstatic
Create super user, run your app and go to admin to create your blog post
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6216d83fa7e2b3275fba2a04c7788fa26537100c7b27661f1355b50d643282fb
|
|
| MD5 |
22fd66b6f2e2167e89133c14d1ee8ffe
|
|
| BLAKE2b-256 |
0344ac6adb1d8c5ed6705eec7c1e59b7a04d54f0f4a8e0f627cc4bb1ca382e9f
|
File details
Details for the file django_easy_blog-1.0.1-py3-none-any.whl.
File metadata
- Download URL: django_easy_blog-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee40bffd07fda4d6d90d7a181e9db379b2d241dad08d52eb07b009b208f99d2
|
|
| MD5 |
2dd144224a018f65f6cfb6c4083f0f3e
|
|
| BLAKE2b-256 |
ed35a8f121f1b320cecfa0b7b531e4692c1ad6e29907d5ff08dd926bb4dae5d8
|