Package release

ocyan-plugin-django

mandel/testing · Version 1.3.2rc4

Installs Django and provides some essential configuration

Metadata

author Mandel
author_email [email protected]
classifiers
  • Framework :: Ocyan
  • Environment :: Plugins
description_content_type text/markdown
dynamic
  • author
  • author-email
  • classifier
  • description
  • description-content-type
  • home-page
  • provides-extra
  • requires-dist
  • requires-python
  • summary
provides_extras
  • spooler
  • test
  • screenshots
requires_dist
  • Django<6,>=5
  • ocyan.core>=1.2.7
  • ocyan.main>=2.0.1
  • whitenoise
  • uwsgidecorators-fallback; extra == "spooler"
  • wheel; extra == "test"
  • pylint-django; extra == "test"
  • isort; extra == "test"
  • ruff; extra == "test"
  • vdt.versionplugin.wheel; extra == "test"
  • coverage; extra == "test"
  • ocyan.plugin.testing>=2.0.0; extra == "screenshots"
  • oxyan.themes>=2.0.2; extra == "screenshots"
requires_python >=3.12,<3.13

Release files

FileTest resultsHistory
ocyan_plugin_django-1.3.2rc4-py3-none-any.whl
Size
23 KB
Type
Python Wheel
Python
3
ocyan_plugin_django-1.3.2rc4.tar.gz
Size
14 KB
Type
Source

Mandel plugin Django

Installation

Add ocyan.plugin.django to your project dependencies.

Desxcription

This plugin installs django and provides some essential configuration, like the email address django uses to mail with and to.

This package never creates privileged users automatically. Projects that need an administrator must explicitly invoke the controlled bootstrap command:

export OCYAN_DJANGO_ALLOW_SUPERUSER_BOOTSTRAP=1
export INITIAL_ADMIN_PASSWORD='provide through your approved secret mechanism'
manage.py bootstrap_superuser --username admin --email [email protected] --password-env INITIAL_ADMIN_PASSWORD

The command never changes an existing account and never prints its password.

Changing TIME_ZONE settings

Add ( "time_zone": "your/time/zone" ) to django settings in ocyan.json

Configuration

Settings you need to configure in ocyan.json

Required fields:
Optional fields:

Example:

    "django": {
      "multilanguage": false,
      "description": "Nang Treats ♥♥♥ A rebuild of Nang treats using Slurpee goodness.\n\n",
      "name": "Nangtreats",
      "short_name": "shabby",
      "secret_key": "doe maar iets",
      "domain": "www.mandelblog.com",
      "username": "mandel",
      "base_url": "https://www.mandelblog.com",
      "email_from": "[email protected]",
      "email_to": "[email protected]",
      "language_code": "nl"
    },

uWSGI spooler support is optional. Install ocyan.plugin.django[spooler] only on a host that explicitly enables django.enable_spooler.