Django Easy Blog 1.0.3 | Coderz Repository

django-easy-blog 1.0.3

Last updated:

0 purchases

django-easy-blog 1.0.3 Image
django-easy-blog 1.0.3 Images

Free

Languages

Categories

Add to Cart

Description:

djangoeasyblog 1.0.3

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)

Migrate your project and collect static

python manage.py makemigrations 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>

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.