Home > Programming & scripting, Python > pici now using django

pici now using django

Finally… it’s 4AM here in Sweden and I just finished the transition from php to django for pici

The major new features are

  • Nicer urls (http://pici.se/1 instead of http://pici.se/?1 , http://pici.se/p/ano41sd instead of http://pici.se/?p_ano41sd and so on…)
  • Personal galleries, both private and public
  • A nicer picture list, with options to select galleries for pictures and so on
  • The possibilty to toggle pictures from public/private
  • The ability to browse through just you own pictures using next/previous links
  • The ability to browse through galleries using next/previous links

The conversion took a bit longer then I thought. Simply rewriting and restructuring the code took a few days, which was pretty good actually, but then a lot of extra work came about in the end.
Writing the scripts for converting the old database to a new one which works fine with django, getting backwards compatible URL’s, getting picisend to work again and so on took a few days as well.

I’ve also done some other improvements “behind the scenes”. The major one is pushing out all static content through lighthttpd instead of apache, to avoid the overhead generated from apache.
I also gave postgresql a shot instead of mysql, but changed my mind so I’ll continue using mysql. Postgresql seems nice and all, but it’s better to use what you know I guess :)

Now to finish up the last bugs (some URL texts are wrong for private pictures… I think) and then go buy breakfast or something. Looks like I won’t sleep tonight :)

Also, I have ordered a nice DELL-server to use for pici, to replace the current hardware. It will be quite nice I believe (and expensive :( ).

buffi Programming & scripting, Python

  1. No comments yet.
  1. No trackbacks yet.