This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mkvirtualenv test | |
| New python executable in ./bin/python | |
| Installing distribute....................................................................................................................................done. | |
| Complete output from command /home/mir/test/bin/python /home/mir/test/bin/easy_install /usr/share/python-virtualenv/p...ar.gz: | |
| /home/mir/test/bin/python: can't open file '/home/mir/test/bin/easy_install': [Errno 2] No such file or directory | |
| ---------------------------------------- | |
| Traceback (most recent call last): | |
| File "/usr/bin/virtualenv", line 3, in | |
| virtualenv.main() | |
| File "/usr/lib/pymodules/python2.6/virtualenv.py", line 534, in main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django import template | |
| from django.core.urlresolvers import reverse | |
| register = template.Library() | |
| @register.simple_tag | |
| def add_active(request, name, by_path=False): | |
| """ Return the string 'active' current request.path is same as name | |
| Keyword aruguments: |
NewerOlder