|
|
Trespams Blog project
The goal is to replace my current WP blog in http://trespams.com for one based on Django.
WP is very good, but I'd like to write code inside the blog, and control how the blog looks and works.I suppose that WP and PHP can do that, but I'm a Python and Django freaky, so I'd like a system which allows me to experiment and modify.
This code uses http://code.google.com/p/blogmaker/ but I I have adapted it to fit my needs:
- Move code to the latest Django trunk. This means unicode, autoescape, etc.
- Adapt it to make the blog the main application instead of just an application. Perhaps I'll change it in the future, but now its easy to test.
- Migrate from WP. This is nearly done, but it's a quite fast and dirty methond.
- Replacement of original templates. I'm using Multiflex-3 for the blog skin from http://www.1-2-3-4.info/. I like very much the structure of Multiflex, thanks Wolfgang.
- Internacionalization. http://trespams.com is a catalan blog, so I need to translate or make able to translate the messages.
- Include an easy way to make syntax highlight. Trespams blog is about project management and programming (mainly Python, Java and SQL) so I usually I have to include code, and WP plugins doesn't fit well.
I don't want to make a true fork of Blogmaker, so I plan to send patches and bug corrections to Blogmaker folks. So if you are searching something stable for your site, please go directly to the Blogmaker page.
Latest news
- 19-jul-2008. I have created the translation files for catalan, spanish and english. The resources are there and you can modify them. I have modified the extractin and compile script to works with the actual code.
- 19-jul-2008. Django people has integrated the new admin branch. This code actually works just with the previous trunk version, it would be ready in few days, as one of the goals of this sofware is to work with the trunk version.
- 19-jul-2008. Well, this blog runs on the latest django trunk. It was faster than I thought. My own blog doesn't run this version, so please use with care and report any bugs you found. I have added more translations.
Install trespams blog
I suppose you have installed Django and Python and downloaded the last version of trespams.
- Copy properties.template.py to properties.py and configure it to fit your folder distribution. Remember to replace the secret_key with your own secret key befor using this sofware in a production environment.
- from the installation folder of trespams run
python manage.py syncdb
and follow the instructions. This may create the database structure for you and it will ask for a user and password.
- Run the local server
python manage.py runserver
- Copy properties.py.template to properties.py and modify the file to fit your needs.
- Start playing with trespams. You'll need to autenticate yourself with user and password supplied in the syncdb stage to start creating posts. You can also use the admin http://localhost:8000/admin in the default configuration.
To run in production environment please follow the instructions you'll fing in the Django site. Configuration of Apache, mod_python are out of the scope of this document.
Trespams is known to run also with Fastcgi, so it's supposed to work on any platform which could run Django itself.
To do
- Create translations files
- Modify the design and add functionality of the tools part to allow delete comments and add tags for example.
- Add markdown syntax help.
- Check the images inclusion
- Add minimum cms configuration to host pages like about, agreements and others.
- Double check the caché system.
Screenshots
Everybody likes screenshots :)
