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.
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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hexia-blog-1.0.6.tar.gz | 8.2 kB | Without provenance | Details for hexia-blog-1.0.6.tar.gz |
Release files / hexia-blog-1.0.6.tar.gz
| Download URL | hexia-blog-1.0.6.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7432dee155e237e23ec38133b49eecb5fd4d7d8c49b7e78d6fd05118ab1e0ef
|
|
BLAKE2b-256 checksum How to use checksums |
75ddc7141af1cef528e46c1ba6912c7b5424710abc4e493e42a743a3d2768111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|
Security for hexia-blog 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.