Skip to main content

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

codecov

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djpress-0.12.1.tar.gz (114.2 kB view details)

Uploaded Source

Built Distribution

djpress-0.12.1-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file djpress-0.12.1.tar.gz.

File metadata

  • Download URL: djpress-0.12.1.tar.gz
  • Upload date:
  • Size: 114.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for djpress-0.12.1.tar.gz
Algorithm Hash digest
SHA256 9b48259567817bddbedec4be0b2fbc419a24205a05889428404a6e84f0141275
MD5 8a5dd959e1f149de176dd4b7baf46580
BLAKE2b-256 4d3017cf6979cd7760a7bbbf40a45bb811820e82c336c5df02e25753184c3a34

See more details on using hashes here.

Provenance

The following attestation bundles were made for djpress-0.12.1.tar.gz:

Publisher: publish.yml on stuartmaxwell/djpress

Attestations:

File details

Details for the file djpress-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: djpress-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 42.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for djpress-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d095d7c4c9de0094862ab037f887c324c7a69374a4f3d14f8c6868462054508a
MD5 dfd69da6d5ca52fb0e87ab1357597afc
BLAKE2b-256 e29e5046ddb5472551eac3fd56f55f459716beb7bb6ae389ae4add2e86206670

See more details on using hashes here.

Provenance

The following attestation bundles were made for djpress-0.12.1-py3-none-any.whl:

Publisher: publish.yml on stuartmaxwell/djpress

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page