Archive for June, 2010

Receiving Email Using AppEngine and Django

appengineWhile Python AppEngine documentation give a good example on receiving email on AppEngine, but for me it take time to figure out how to do that in Django.

For those who haven’t yet figure out how to do that, let me save your time.
Continue reading »

Relative Path for your Django Project

djangoSometimes you need to move your Django project (example:from local computer to production server) or you work as a team which don’t have the same path to your project. If you give absolute path then you always need to change the settings.py.

The trick is to give relative path to your project.
Continue reading »

Beginner Step Into MongoDB

MongoDBAfter installing MongoDB, I’m really excited to learn more about MongoDB.

What is it anyway?

MongoDB is document oriented database, which bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). It’s written in the C++ and has been developed since October 2007 by 10gen.
Continue reading »

How to Check if An Application is Installed in Django

djangoIf you have scenario where you need to check whether you have one Django application installed in your project or not, you can use this simple trick :

from django.conf import settings
 
if "app_name" in settings.INSTALLED_APPS:
    print "app_name install"

That’s it. Enjoy!

Set Different Settings for Development in Django

djangoWhen you work in your local machine, most likely you need different settings. You can have this by adding a few lines of codes in your local settings.py. Put this code at the end of your settings.py
Continue reading »

[Link] jQuery Fundamentals Available as Open Source

Rebecca Murphey has released awesome resource for learning jQuery. If you’re into jQuery, you should check it out.

Sending Email Using Gmail Account in Django

djangoSending email in Django is easy, just add a few lines in your settings.py and you have everything ready to send an email. But if you’re using Gmail as your SMTP server you need add a few more lines to your settings.py. You need to specify what port Gmail server using and set to use TLS.
Continue reading »

My First Step Into MongoDB – Installing MongoDB on Ubuntu

MongoDBLately MongoDB become more and more popular in NoSQL movement. For you who haven’t heard about it, MongoDB is a scalable, high-performance, open source, document-oriented database. I always keep my eyes on MongoDB, but never have a chance to really taste the goods. So, right now I want to jump and tame the beast.
Continue reading »