Skip to main content

A django application, which implements a flexible and generic viewsystem providing a convenient way to handle staticpages, model based pages and much more.

Project description

A django application, which implements a flexible and generic viewsystem providing a convenient way to handle staticpages, model based pages and much more.

SO big question: What exactly does it for you?

TLDR:

dynamic_sites in its core is a combination of a site model representing each page and a set of generic views which in conjunction with django-sitetree create a powerful and yet simple system to create and manage static pages and model dependent/displaying pages.

Long Answer:

The core of the app is twofold. On the one side you have the site model of which the instances represent each page on your website. For each instance you can specify where in your sitetree it is placed which name it should have (for each language of your website), which template you you want to be displayed, if so which picture should be displayed in the background, which rights are needed to access this page and a couple other things. Most importantly, if wished for, which model instances of the models you registered to the collecting signal (more on this in the usage part) you would like to be displayed or edited, printed and so one, on this page. All of this is handled via the admin interface without any active coding on your site. Now to the second part. How does all this fancy stuff work so easy. The core functionality comes from a small number of generic views. Detailed description of each view are found in the respective chapter. These views serve the not only the site object you accessed via the url, but also serve the specified model and the necessary templates to handle it. Depending on the title you gave the site on its creation it can also handle creation, editing, print-to-pdf, or deletion of objects from the given model.

The core point is here you have a ton of basic functionality for each of your custom models independent of which fields, capabilities or complexity it has. In addition you can still add custom pages with your own views as long as you specify the url pattern above the dynamic_sites.urls include (more in Installation and Usage).

The full Documentation can be found here

  • Free software: MIT license

Needed Dependencies

The package is based on the django-sitetree package which handles the tree structure, access permissions and menu generation.
For the translation capabilities django-modeltranslation is used.
django-bleach is used for cleaning textfields.

Optional Dependencies

django-weasyprint for printing to pdf via the ContentDownloadView.

Changelog

1.0.0 (2021-02-25)

  • First release on PyPI.

1.0.1 (2021-03-18)

  • Added a ton of documentation.

1.1.0 (2021-03-25)

  • Added new ‘private objects’ feature.

  • Added more documentation.

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

django_dynamic_sites-1.1.0.tar.gz (33.5 kB view hashes)

Uploaded Source

Built Distribution

django_dynamic_sites-1.1.0-py2.py3-none-any.whl (22.0 kB view hashes)

Uploaded Python 2 Python 3

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