|
|
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.
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
- 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.
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 :)
