Rommel Rico: Random ramblings

How to install django-oembed in WebFaction

Gave me some trouble, so I’d figure I would write a short guide for those of you unfamiliar with Linux. (By the way, if you guys need a good Web Host, I highly recommend the guys at Webfaction.com)

Anyway, here is how you do it:

  1. CD into your webapp. Usually, it’s something like this: /home/username/webapps/your_app/
  2. Create a directory called “src”, like this: mkdir src
  3. CD into the directory: cd src
  4. Download django-oembed by typing: svn checkout http://django-oembed.googlecode.com/svn/trunk/ django-oembed
  5. Link oembed to the PYTHONPATH by typing: ln -s `pwd` /../src/django-oembed/oembed lib/python2.5/
  6. Now, simple update settings.py on your_app:
INSTALLED_APPS = (
    'oembed',
)

Easy! :)

EDIT: Thank you for the correction Sean. I appreciate it.

  • That’s almost correct, but you have a problem in step 5.

    Since you are in the ‘src’ directory, “pwd” will return “/home/username/webapps/your_app/src”, and the command will fail because a) there is no “”/home/username/webapps/your_app/src/src” directory and b) there is no “/home/username/webapps/your_app/src/lib/python2.5″ directory.

    So, tf you’re going to create the symlink while in the “src” directory, be sure to account for that, eg:

    ln -s `pwd`/../src/django-oembed/oembed ../lib/python2.5/

  • @Sean Thanks! Fixed it.

  • Hello! I would wish to supply a large thumbs up for your outstanding info you could have here about this post. I

  • cleaning supplies ought to have earth friendly organic ingredients so that they do not harm the environment 65860

  • Spot up for this write-up, I genuinely believe this internet internet site requirements a terrific deal far more consideration. I

  • Oh my goodness! an remarkable write-up dude. A lot of thanks Even so My business is experiencing trouble with ur rss . Do not know why Struggle to sign up to it. Can there be every person finding identical rss dilemma? Anyone who knows kindly respond. Thnkx 277964

  • I adore foregathering useful info, this post has got me even more info! . 641149

  • Soon after study quite a few the websites along with your internet site now, and that i genuinely appreciate your method of blogging. I bookmarked it to my bookmark internet site list and are checking back soon. Pls have a appear at my internet page likewise and let me know in case you agree. 126551

You can follow any responses to this entry through the RSS 2.0 feed.