Question: it seems to me that intellij does not recognize less files, [even though they state that they support less file types](http://www.jetbrains.com/idea/webhelp/file-types-recognized-by-intellij-idea.html)

Am I missing something? the less compiler is bundled but they cannot recognize the less syntax?

![The less file type does not show up as well in the file types of intellij 12](https://i.stack.imgur.com/0Xtmw.png)

Answer: 
Write simple script using python:

```
#!/usr/bin/python
import sys
import os

try:
    import django
    print "found"
    print "path={0}".format(os.path.dirname(django.__file__))
    sys.exit(0)
except ImportError:
    print "not found"
    sys.exit(0)

```

then run script and check for exit code

```
$ python script.py
$ echo $?

```
You should have a look at this question: [How do I find the location of Python module sources?][1]