How to Check if An Application is Installed in Django

June 27th, 2010

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!

Related posts:

  1. Django Tutorial – Simple Notes Application
  2. A Quick Tutorial on Django MPTT
  3. Relative Path for your Django Project
  4. How to Install OSQA in Ubuntu Server
  5. 10 Django Apps I Can’t Live Without

One Comment