Metadata-Version: 2.4
Name: ocyan.main
Version: 2.0.1
Summary: Integrates and configures ocyan plugins in projects.
Home-page: https://git.mandelblog.com/mandel-plugins/ocyan.main
Author: Mandel
Author-email: info@mandelblog.com
Classifier: Framework :: Ocyan
Requires-Python: >=3.12,<3.13
Description-Content-Type: text/x-rst
Requires-Dist: ocyan.core>=1.2.7
Requires-Dist: django<6,>=5
Requires-Dist: django-oscar
Requires-Dist: django-oscar-api
Requires-Dist: django-compressor
Requires-Dist: django-libsass
Requires-Dist: beautifulsoup4
Requires-Dist: lxml
Requires-Dist: polib
Requires-Dist: sorl-thumbnail
Provides-Extra: test
Requires-Dist: wheel; extra == "test"
Requires-Dist: empty_testproject; extra == "test"
Requires-Dist: pylint-django; extra == "test"
Requires-Dist: isort; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: pillow; extra == "test"
Requires-Dist: ocyan.plugin.testing; extra == "test"
Requires-Dist: vdt.versionplugin.wheel; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: ocyan.plugin.oscar_paid_product_options; extra == "test"
Requires-Dist: ocyan.plugin.seo; extra == "test"
Requires-Dist: oxyan.themes; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

Mandel application framework
============================

This package is the main Django app which implements the Mandel application
framework.
It automatically finds and configures the Ocyan plugins in the ocyan.plugins
namespace.

Depency management is done using Poetry (https://poetry.eustace.io/).

Management commands
-------------------
This plugin contains some genric management commands useful for cleaning up
data after importing and such

1. `cleanup_richtext` Clean up all <font> and style= and things that mess up the styling from rich text fields.
2. `export` Export the database and all images
3. `fix_png_matte` change the background color of png images that where imported and turn out bad.
4. `fixcataloguemigrations` This command is nolonger useful
5. `flushall` Use this command to delete every single thing in the database, even the south migrations
6. `import_destructive` Destroy the database and replace with a dump from a tar.gz file. Also import media files
7. `secret` Generate a secret key with a management command.
8. `settings` Use this command to output django settings
9. `show_installed_apps` Use this command to view the INSTALLED_APPS segments, displaying how the app overrides are structured.
10. `updatemigrations` Check if there are apps that override something and have missing migrations. Use this before trying make_migrations to fetch upstream added migrations

Templatetags
------------

This plugin also contains some templatetags:
1. `ocyan_thumbnail` template tags used to render images as picture tags
2. `ocyan_main` contains `stripformatting` for removing unwanted html from richtext and `absolute_url` for rendering an url with the domain and http
3. `ocyanjson` contains templatetags for readin values from ocyan.json

Development
-----------
Use the kitchensink (https://git.mandelblog.com/mandel/kitchensink) project.

The Django admin is available by default on /django_admin.
