close forgot it?
close
Login with password or OpenID

Setting up Byteflow

In the past weeks I was playing around with byteflow to prepare my own theme and set it up properly. To have it running was really simple, I only had to take care of the /media/, /static/ and /admin-media/ urls to Alias them properly. Otherwise everything went like charm!

After I’ve looked at its admin panel to learn what can I do. The only big mystery was the textblocks app, but after I’ve found some other useful stuff as well.

Textblocks

Even though it’s easy to create a textbox, it is not that straightforward how to show it on your sites. Unfortunately, the only way to do it is to edit your template and add the corresponding template tag at the proper place.

I really find this unsatisfactory as this doesn’t allow flexibility like having one textblock besides one post and a different with a different post. Might be that one day I’ll add this functionality. But let’s get back to the question how to use it?

Simply add the {% text_block “block_code” %} tag to your template. This will show a block named block_code. That’s it!

How many posts on one page?

As I expect to have a relatively crowded startpage, I don’t want many posts there. So I digged into the byteflow code and found that by overwritting settings.PAGINATE_BY I can set it in general.

But what if I would like to have let’s say 5 posts on a tag-list but only 2 on my homepage? Actually for more fine tuned settings I’ll have to overwrite the info variable in blog/urls.py. This is not a nice thing, but AFAIK this is the only way to do it.

Directory pings

One thing I found really hard to find in Byteflow were directory pings. Actually, they are in the settings.py file and set by default to False. You can see the default list of directories to ping there as well. Actually, I extended it a little bit.

Add post to: Delicious Reddit Slashdot Digg Technorati Google
Subscribe via RSS | Comment

Comments

10.09.2008 13:38 V

Actually, I still don’t really know what a Post’s teaser is good for if an article list shows the whole post instead of the teaser only.

14.09.2008 14:11 V

I’ve found out how to make a long post short, just add (I mean < ! — more —> without the spaces) to the end of the intro.

14.09.2008 20:45 Alexander Solovyov

Sorry for this thing, it’s really slightly annoying. !—more— was added before teaser and teaser was meant to use in some page with “favorite” posts. I think I need to remove it or to look at teaser availability before looking at !—more—

12.09.2008 11:19 Mcsilly

Well congrats! Looks great. And thanks for putting me on your blogroll (of course just did the same). Will def keep an eye on your posts, well the programming rather the economics :P

12.09.2008 12:49 V

nice to see you around! actually I plan to write about economics mainly in Hungarian, but from time2time there will be some english posts as well. Your mileage may vary!

Comment form for «Setting up Byteflow»

Required. 30 chars of fewer.

Required.

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