gal is a django based image gallery. Its goal is to provide easy access to viewing images and rating them.
-
Before installing the requirements install
python-dev
andlibjpeg-dev
. -
Add "gal" to your
INSTALLED_APPS
setting like this:INSTALLED_APPS = ( ... 'gal', )
-
Include the gal URLconf in your project
urls.py
like this:url(r'^gal/', include('gal.urls')),
-
Run
python manage.py syncdb
to create the gal models. -
Run
python manage.py migrate gal
to run the gal migrations. -
Configure
GAL_IMAGES_DIR
andGAL_IMAGES_CACHE_DIR
and create them. -
Copy directories, they represent galeries, of images to
gal/images
and rungal/import-images
to import them.
gal assumes you have a layout.html
template with title
, head
, and
content
block.