Package release
ocyan-plugin-django
mandel/stable · Version 1.3.2
Installs Django and provides some essential configuration
Metadata
| author | Mandel |
|---|---|
| author_email | [email protected] |
| classifiers |
|
| description_content_type | text/markdown |
| dynamic |
|
| metadata_version | 2.4 |
| provides_extras |
|
| requires_dist |
|
| requires_python | >=3.12,<3.13 |
Release files
| File | Test results | History |
|---|---|---|
ocyan_plugin_django-1.3.2-py3-none-any.whl
|
|
|
ocyan_plugin_django-1.3.2.tar.gz
|
|
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:
-
name
- Project name, better to use letters only
-
username
- Project metadata only. It does not create an account.
-
domain
- Live domain name for your project.
- It is necessary to use www. ex: www.mandelblog.com
-
email_from
- The e-mail address from which you'll be sending.
-
email_to
- Target e-mail addresses (Enter a list if you want to have multiple emails) like this: [¨email-1¨,¨email-2¨,¨email-3¨]. When using just 1 email enter it as a string like: "[email protected]"
- Sending the order email as a bcc to this email
- Sending the contact form to this email as a default (can be changed in the contact_form plugin).
Optional fields:
-
email_host
- Outgoing email server (SMTP)
-
email_port
- The default email port is 587
-
email_host_user
- Username to connect to the mail server
-
email_host_password
- Password to connect to the mail server
- No password is supplied by this package. Configure it through the project's approved secret mechanism.
-
email_use_tls
- Use TLS to connect to the mail server.
- Choose between true or false
- The default value is true
-
language_code
- To choose the main language
- Default language is Dutch (¨ nl ¨)
-
description
- Your project description
- This field is optional
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.