Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A blog application for Django sites, inspired by classic WordPress.
Warning - very alpha.
This package uses semantic versioning, but until we reach version 1.x.x, the following rules will apply:
If you choose to use this package prior to version 1.x being release, please pin your requirements to a specific minor version, e.g. djpress~=0.11.0
djpress
by adding it to your requirements file, e.g. djpress~=0.11.0
(see versioning note, above).INSTALLED_APPS
in Django:INSTALLED_APPS = [
# ...
"djpress.apps.DjpressConfig",
# ...
]
urls.py
file.The following will set DJ Press to be available at the root of your site, e.g. https://example.com/
from django.urls import path, include
urlpatterns = [
# ...
path("", include("djpress.urls")),
# ...
]
If you want your blog to be in a subdirectory, use something like the following:
from django.urls import path, include
urlpatterns = [
# ...
path("blog/", include("djpress.urls")),
# ...
]
python3 manage.py migrate
Note that this relies on the Django Admin for content management, so ensure that you have a user with at least
staff
status to manage content.
In your settings.py file, create a DJPRESS_SETTINGS
dictionary. Here are some common settings:
# DJPress settings
DJPRESS_SETTINGS = {
"BLOG_TITLE": "My Awesome Blog",
"POST_PREFIX": "{{ year }}/{{ month }}",
}
There are lots more settings available. Please checks the docs or look at the source code: src/djpress/app_settings.py
Documentation is a work-in-progress but is available on GitHub Pages: https://stuartmaxwell.github.io/djpress
FAQs
A blog application for Django sites, inspired by classic WordPress.
We found that djpress 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.