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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_dynamic_sites-1.1.0.tar.gz
.
File metadata
- Download URL: django_dynamic_sites-1.1.0.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54150995eaa7b6312ea64ce5d36253c117eceb02a113ef279c063a73c28225a2 |
|
MD5 | 314aa99807d79c374e8dec57091dde8d |
|
BLAKE2b-256 | 659aa4e8b8e25e66de044bc89fb32a05e9f2a2389411a1a892f0b92d91c17065 |
File details
Details for the file django_dynamic_sites-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_dynamic_sites-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a983e39cb5fc38e8080dd5322830ccd836bac6a65891eebbd0af5c03fada2d95 |
|
MD5 | 48a80d9b425ddd0eaa40cb333c84b785 |
|
BLAKE2b-256 | d08592a6313edf21c60df7b1e2e152f9fefa9f99f7b5e7caf60bc28ce03812e8 |