About Blog Gallery Twit

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.

Add post to: Delicious Reddit Slashdot Digg Technorati Google
Comment

Comments

Justin Driscoll 31.05.2008 8:52

I’m really glad to hear installing photologue went smooth for you. Be sure to check out the adjustment and effects you can assign to your photo sizes. If you have any questions or suggestions feel free to stop by the discussion group.

reply
William Stearns 31.05.2008 21:32

Yeah, I did some CSS editing and got it formatted a bit nicer for display. Opted for a couple different size changes. Still playing with it, and hope to get some more photos loaded. Thanks for the comments!

reply

Comment form for «Photologue Installed»

Required. 30 chars of fewer.

Required.

captcha image Please, enter symbols, which you see on the image