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.

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.

Release files for django-dynamic-sites 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dynamic-sites 1.0.1
File Size Uploaded
django_dynamic_sites-1.0.1.tar.gz 31.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-dynamic-sites 1.0.1
File Interpreter ABI Platform
django_dynamic_sites-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 52.8 kB

Release files / django_dynamic_sites-1.0.1.tar.gz

Download URL django_dynamic_sites-1.0.1.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
49303663bec400657c063a74cffcefe0ac05d504504f5ee500fda357f608d5c2
BLAKE2b-256 checksum
How to use checksums
d312b5ba65b87033769e8d35a0861da787270cdf88840196f9c9c65f6124ae86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

Release files / django_dynamic_sites-1.0.1-py2.py3-none-any.whl

Download URL django_dynamic_sites-1.0.1-py2.py3-none-any.whl
Size 21.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
25b4d78e4c585a13ee74d4df0ba6ee432016eb31eeb1bcd3b67d622536afad0e
BLAKE2b-256 checksum
How to use checksums
a084287ab0983ec5de02641702328583e45ba39b4cf5d1eef50dac62bdc06405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

Release history Release notifications | RSS feed

1.1.0

2 release files

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page