Yet another File gallery for Django.
Galleries contains Albums that contains Ressources and ressources are your files items. Usually used like an image gallery, you should also use it like a download center for many file types.
Galleries and Albums have thumbnails, Ressources have a thumbnail and a file but the file can be a real uploaded file on your server or just an url to link to. Also Ressources have optional tags.
Note that Albums make usage of mptt, so Albums can have album children. Shipped templates are basics.
Requires
Django >= 1.5;
mptt;
Optional
Install
In your urls.py :
url(r'^porticus/', include('porticus.urls')),
Or to point out a specific gallery :
url(r'^$', 'porticus.views.view_gallery_detail', {'slug':'home-intro'}, name='homepage_gallery_detail'),
Then add the content of porticus.settings in your settings file.
In your INSTALLED_APPS setting :
INSTALLED_APPS = (
...
'mptt',
'sorl.thumbnail',
'porticus',
'tagging',
...
)
Also if you want to use its plugin within DjangoCMS add this to INSTALLED_APPS setting :
'porticus.cmsplugin_porticus',
Also you can find some Sitemap classes in sitemaps.py that you can mount in your project sitemap like so :
from django.conf.urls import patterns
from porticus.sitemaps import PorticusGallerySitemap, PorticusAlbumSitemap, PorticusRessourceSitemap
sitemaps = {
'galleries': PorticusGallerySitemap,
'albums': PorticusAlbumSitemap,
'photos': PorticusRessourceSitemap,
}
urlpatterns = patterns('',
# the sitemap
(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
)
See the Django documentation about Sitemaps for more details.
Metadata
Release files for porticus 0.7.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| porticus-0.7.7.tar.gz | 17.2 kB | Without provenance | Details for porticus-0.7.7.tar.gz |
Release files / porticus-0.7.7.tar.gz
| Download URL | porticus-0.7.7.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ead7728bcc0d72f3e4d7c8dc479a991cea6f873a9e82b4404ea68a3755fb8faf
|
|
BLAKE2b-256 checksum How to use checksums |
8f73c59f4793386702f402b92c1b73a12e325c9110d70f4cd5b8dbefbe60ee3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for porticus 0.7.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.