Skip to main content
=====
Blog
=====

Blog is a simple Django Blog app.

Blogs can have tags, title, image, short description and a rich text blog.

Tags are created in Admin and Users can then add as many as they like.

Detailed documentation is needs writing.

Quick start
-----------

1. pip install hexia-blog

2. Add "blog" and dependencies to your INSTALLED_APPS setting like this::

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

3. Add "blog.context_processors.hexia_blog" to your context_processors::

'OPTIONS': {
'context_processors': [
...
'blog.context_processors.hexia_blog',
],
},


4. Include the blog URLconf in your project urls.py like this::

path('blog/', include('blog.urls')),

5. Run `python manage.py migrate` to create the blog models.

6. Start the development server and visit http://127.0.0.1:8000/admin/
to create a Tag (you'll need the Admin app enabled).

7. There are 5 URLs provided.

<a href="{% url 'blog:blog-detail' object.slug %}">Blog Detail</a> provides the detail of a specific blog.
Template: blog/blog_detail.html

<a href="{% url 'blog:blog-list' %}">Blog List</a> will list all blogs.
Template: blog/blog_list.html

There is a special case of list where 'tag' and/or 'search_string' get be set. When set, only blogs matching
these criteria will be returned. See blog/blog_list.html to see it implemented.

<a href="{% url 'blog:blog-tag-list' tag.slug %}">Tag List</a> provides a list of blogs with the associated Tag.

<a href="{% url 'blog:blog-month-list' month=xx year=yyyy %}">Month List</a> provides a list of blogs within the associated Month.

<a href="{% url 'blog:blog-create' %}">Blog Create</a> will allow you to create a new blog (or you can via admin)
Template: blog/blog_form.html

When using create you must set the blog auther to the user who it is associated with.

7b. There aprev and next blog functions provided

For a given `blog` object you can access the previous and next blog with `blog.prev_blog` and `blog.next_blog`

8. Visit http://127.0.0.1:8000/.


Settings
--------

Blog uses AUTH_USER_MODEL as the default user model. It will default to
the Django User model if AUTH_USER_MODEL is not set in settings.py

BLOG_PAGINATION:
The number of blogs shown on a single page when using listing.
Default = 20

Context Processors
------------------
There is a single context_processor provided, 'hexia_blog_tags', which provides a list of all Tags.
It is used in blog_list.html.

Metadata

Release files for hexia-blog 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hexia-blog 1.0.12
File Size Uploaded
hexia-blog-1.0.12.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hexia-blog 1.0.12
File Interpreter ABI Platform
hexia_blog-1.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / hexia-blog-1.0.12.tar.gz

Download URL hexia-blog-1.0.12.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f60d708b87e1a18c70297309c33c12e984e864997c34c6e5d805996291fc90a1
BLAKE2b-256 checksum
How to use checksums
ebf817a0af4bd88bbdf71465d71180d8df4ae7acb04250acb7f89e76ab9312e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.15rc1

Release files / hexia_blog-1.0.12-py3-none-any.whl

Download URL hexia_blog-1.0.12-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
226ed605fa8f71991ccb01be7e73d81bed2342a66c8546c5078b98177ac840b5
BLAKE2b-256 checksum
How to use checksums
d0d416c62e268e308b6628c8712138848dec266c355fc1c19a998ee025a553b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.15rc1

Release history Release notifications | RSS feed

This release

1.0.12 This release

2 release files

1.0.11

1 release file

1.0.10

2 release files

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page