A blog application for Django sites, inspired by classic WordPress.
Project description
DJ Press
A blog application for Django sites, inspired by classic WordPress.
Warning - very alpha.
Versioning
This package uses semantic versioning, but until we reach version 1.x.x, the following rules will apply:
- MAJOR version will remain on 0 until the base functionality is complete.
- MINOR version indicates that an incompatible or breaking change has been introduced.
- PATCH version indicates a bug fix or a backward compatible change.
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
Installation
- Install
djpress
by adding it to your requirements file, e.g.djpress~=0.11.0
(see versioning note, above). - Add it to your
INSTALLED_APPS
in Django:
INSTALLED_APPS = [
# ...
"djpress.apps.DjpressConfig",
# ...
]
- Add the URLs to your project's main
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")),
# ...
]
- Run migrations:
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.
Configuration
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
Documentation is a work-in-progress but is available on GitHub Pages: https://stuartmaxwell.github.io/djpress
Badges
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file djpress-0.11.3.tar.gz
.
File metadata
- Download URL: djpress-0.11.3.tar.gz
- Upload date:
- Size: 105.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65d9decc3c1d79976be5d3c0c7452aa64a348a082d73590a5de124d37e3c137 |
|
MD5 | 611e49a192f66b5822d48595c8c52d69 |
|
BLAKE2b-256 | dd842e1a16f6c2c770b2ace6760caf4f07ad47537a26898ae0697602727fe35e |
Provenance
The following attestation bundles were made for djpress-0.11.3.tar.gz
:
Publisher:
publish.yml
on stuartmaxwell/djpress
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
djpress-0.11.3.tar.gz
- Subject digest:
a65d9decc3c1d79976be5d3c0c7452aa64a348a082d73590a5de124d37e3c137
- Sigstore transparency entry: 149030752
- Sigstore integration time:
- Predicate type:
File details
Details for the file djpress-0.11.3-py3-none-any.whl
.
File metadata
- Download URL: djpress-0.11.3-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e06faec424fb327a30d93a7678bd35603dec663dd20ed56de1f63efd64d29799 |
|
MD5 | 69749bbecf86d4ce3cb039932334c24f |
|
BLAKE2b-256 | 9bd1c466e3c64cf99ca510a00e9ea02ab19fb4d6f8484ab9f2a580074066acc7 |
Provenance
The following attestation bundles were made for djpress-0.11.3-py3-none-any.whl
:
Publisher:
publish.yml
on stuartmaxwell/djpress
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
djpress-0.11.3-py3-none-any.whl
- Subject digest:
e06faec424fb327a30d93a7678bd35603dec663dd20ed56de1f63efd64d29799
- Sigstore transparency entry: 149030754
- Sigstore integration time:
- Predicate type: