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, you probably will have to override them to suit your needs.

Migrations

Since the 0.9 version, Django < 1.6 and DjangoCMS < 3.0 support has been dropped and so Porticus migrations have been reseted, since we can’t support migrations with DjangoCMS < 3.0 because it will need too much time to fix them.

Requires

Optional

  • DjangoCMS >= 3.0 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', namespace='porticus')),

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 and the apps in your INSTALLED_APPS setting :

INSTALLED_APPS = (
    ...
    'mptt',
    'sorl.thumbnail',
    'porticus',
    'tagging',
    'filer',
    'easy_thumbnails',
    ...
)

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.9.2.tar.gz (19.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for porticus-0.9.2.tar.gz
Algorithm Hash digest
SHA256 cf4f95dc8f6e34be30022a2f8676a8057e8ea01e4933cb4378240340f8aaae32
MD5 35e24d7fef21fcde2c47712393cea6cc
BLAKE2b-256 432a599aa549824aa568f07dfa054d5d50054a4b89e64dcdde108e77789c7f64

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