
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A simple blog implemented as a DJP plugin.
Install this plugin in the same environment as your Django application.
pip install django-plugin-blog
This adds a blog at /blog/
, configured to be edited using the Django admin.
The default templates expect a base template with {% block title %}
and {% block content %}
and {% block extra_head %}
blocks.
You can use the DJANGO_PLUGIN_BLOG_BASE_TEMPLATE
setting to point to an existing base template.
You can also provide your own versions of the following template files in your own templates directory:
django_plugin_blog/base.html
- the base template for the blogdjango_plugin_blog/index.html
- the index page, at /blog/
django_plugin_blog/archive.html
- the archive page, at /blog/archive/
django_plugin_blog/year.html
- the archive for a year, at /blog/YYYY/
django_plugin_blog/tag.html
- the archive for a tag, at /blog/tag/TAG/
django_plugin_blog/entry.html
- the detail page for an entry, at /blog/YYYY/slug/
A feed is provided at /blog/feed/
. You can customize the title of this feed using the DJANGO_PLUGIN_BLOG_FEED_TITLE
setting.
The plugin adds URLs under /blog/
by default. You can change this using the DJANGO_PLUGIN_BLOG_URL_PREFIX
setting.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd django-plugin-blog
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
FAQs
A simple blog implemented as a DJP plugin
We found that django-plugin-blog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.