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!

Related posts:

  1. Django Tutorial – Simple Notes Application
  2. Relative Path for your Django Project
  3. CodeIgniter Tutorial – To do list application#2

2 Tweets

3 Responses to “How to Check if An Application is Installed in Django”

  1. [...] This post was mentioned on Twitter by KomunitasWeb, Django Ireland. Django Ireland said: How to Check if An Application is Installed in Django | KomunitasWeb http://bit.ly/aoR1GG [...]

    Pingback by Tweets that mention How to Check if An Application is Installed in Django | KomunitasWeb -- Topsy.com — June 27, 2010 @ 9:46 am

  2. New blog posting, How to Check if An Application is Installed in Django – http://tinyurl.com/2a27qbz

    This comment was originally posted on Twitter

    Comment by komunitasweb — June 27, 2010 @ 9:33 am

  3. How to Check if An Application is Installed in Django | KomunitasWeb http://bit.ly/aoR1GG

    This comment was originally posted on Twitter

    Comment by DjangoIreland — June 27, 2010 @ 9:41 am

Additional comments powered by BackType