Skip to main content

A File gallery application for Django

Project description

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

Optional

  • DjangoCMS to use Porticus with the cms plugin;

  • South migration is supported. This is not required, but strongly recommended for future updates;

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.

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

porticus-0.8.1.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file porticus-0.8.1.tar.gz.

File metadata

  • Download URL: porticus-0.8.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for porticus-0.8.1.tar.gz
Algorithm Hash digest
SHA256 a8c6157519c0a6f154f37bcf0244010a1edff7caa90c6f0f6f7084b40bd6f479
MD5 4def0d2b78b09b494634b910c46b9c0e
BLAKE2b-256 fb30e091c9b4ca4402711ab319b6f754768f81316d56642ab70522ab1369dff2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page