About Blog Gallery Twit

All articles, tagged with “photologue”

Picasa instead of Photologue

I got a bit lazy and decided that it was too much of a pain in the rear to manage photos in two places, so I’ve archived my photologue installation and gone with a jQuery-lightbox implementation of my Google Picasa Web Albums.
Looks pretty cool!

Next I need to add Lightbox

My next project will be to clean up my CSS a bit for photologue and then use Lightbox to view the galleries. I think I’ll stick with the cached smaller images and provide links to the source, but we’ll see.

Photologue Installed

Wow, I was quite surprised how easy it was to get photologue installed on byteflow. I know a lot of people have been making comments in the groups about getting byteflow to be a application instead of a project, but it’s quite easy to get things installed on it. Photologue only took about 3 minutes. Here’s the steps I did to install it.

I keep a downloads directory in my home path for bringing in projects and files, but you can dump your checked out dir anywhere.

cd ~/downloads
svn checkout http://django-photologue.googlecode.com/svn/trunk/ django-photologue
cd ~/django_projects/byteflow/apps
mv ~/downloads/django-photologue/photologue .
cd ../templates
mv ../apps/photologue/templates/photologue .

That’s the hard part, now the django side. Follow normal procedures of commenting out all the INSTALLED_APPS and add photologue. I find it easier to do in settings.py directly.

INSTALLED_APPS = (
    #'django.contrib.auth',
    #'django.contrib.contenttypes',
    #'django.contrib.sessions',
    #'django.contrib.sites',
    #'django.contrib.admin',
    #'django.contrib.sitemaps',
    #'django.contrib.flatpages',
    #'django.contrib.markup',
    #'lib',
    #'pytils',
    #'accounts',
    #'blog',
    #'discussion',
    #'openidconsumer',
    #'pingback',
    #'tagging',
    #'typogrify',
    #'render',
    #'robots',
    #'textblocks',
    #'livejournal',
    #'blogroll',
    #'openidserver',
    #'recaptcha',
    'photologue',
)

Run ./manage.py syncdb. Uncomment all the apps that you just commented out in settings.py. Now decide what you want to do with the urls, I just decided to keep photologue in my path.

url(r'^photologue/', include('photologue.urls')),

Then I edited the settings_local.py and added to the STATIC_PAGES this:

('Gallery', '/photologue/gallery/', 'Photos'),

That simple, and everything looks like it worked. Created a test gallery, but going to move over a bunch of photos to see how well it works.