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.

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.

Metadata

Release files for django-dynamic-sites 1.1.0

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.1.0
File Size Uploaded
django_dynamic_sites-1.1.0.tar.gz 33.5 kB Details

Built distribution (wheel)

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

Total release size: 55.6 kB

Release files / django_dynamic_sites-1.1.0.tar.gz

Download URL django_dynamic_sites-1.1.0.tar.gz
Size 33.5 kB
Tags Source
SHA-256 checksum
How to use checksums
54150995eaa7b6312ea64ce5d36253c117eceb02a113ef279c063a73c28225a2
BLAKE2b-256 checksum
How to use checksums
659aa4e8b8e25e66de044bc89fb32a05e9f2a2389411a1a892f0b92d91c17065
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.1.0-py2.py3-none-any.whl

Download URL django_dynamic_sites-1.1.0-py2.py3-none-any.whl
Size 22.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a983e39cb5fc38e8080dd5322830ccd836bac6a65891eebbd0af5c03fada2d95
BLAKE2b-256 checksum
How to use checksums
d08592a6313edf21c60df7b1e2e152f9fefa9f99f7b5e7caf60bc28ce03812e8
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

This release

1.1.0 This release

2 release files

1.0.1

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