Two days ago I got an iPod touch 2G after reading so many good things about it. I was planning –like so many people- to install some of the free apps and games that are available for it, but what I didn’t know (and I didn’t expect actually) is that because I’m in Syria, I can’t install free stuff from Apple’s App Store. I read about jailbreaking, but I don’t want to do that! I just want free stuff!
I use anonymous proxy software to access services like Google Code (which is blocked by Google for Syrians) and services that are blocked locally (like YouTube or Facebook), but the strange thing is that when you open iTunes through these programs it either closes immediately after you click (get app) button or the button doesn’t show up in the at all!
But of course, I kept searching and searching until I found a solution, and here’s how I did it:
Continue reading...
In this post, I'm going to talk about using TinyMCE (Javascript HTML editor) with django's admin application.
In django administration application, TextFields are represented as <textarea></textarea> tags, so it can be pretty annoying to add content when using these fields to represent HTML content (like in blog posts). The solution comes with Javascript by using one of the many HTML editors, like TinyMCE.
The few steps I'm going to show you in this post are perfect for these situations, but sometimes, you might really need a regular <textarea> for a model and TinyMCE for another. These cases won't be discussed in this post (saving for another post ^^).
Now let's get to work,
Of course, you'll need TinyMCE, which you can get from here.
You should also set your project to use django's admin application, more info here.
Now, unzip the package you've just downloaded and go to /script/ and copy the whole /tiny_mce/ folder and put it in your /media_root/ directory in your project. If you like being organized, you probably want to put it inside a "js" folder.
Once you have it there, go to your /templates/ directory and create a new folder with the nheame "admin".
Continue reading...