1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
:>TAGS
:>tags
for dir in . /usr/share/pyshared/django; do
find $dir -name '*.py' | etags -a -
find $dir -name '*.py' | ctags -a -
find $dir -name '*.js' | etags -a -
find $dir -name '*.js' | ctags -a -
find $dir -name '*.html' | etags -a --regex='/.*{%[ \t]+block[ \t]+\([^ \t%]+\)/\1/' -
find $dir -name '*.html' | ctags -a --regex='/.*{%[ \t]+block[ \t]+\([^ \t%]+\)/\1/' -
done
|
More like this
- cron/console bootstrap django by nstrite 5 years, 9 months ago
- Autoload Django Models When Using ./manage.py shell by sheats 5 years, 4 months ago
- Use django-admin.py instead of manage.py by whiteinge 4 years, 11 months ago
- Create nice looking PDFs from developer documentation by henning 5 years, 5 months ago
- Make hyperlinks for labels of raw_id_fields (jQuery) by ramen 3 years, 4 months ago
Comments
I do something like that, but instead of hardcoding '.' and '/usr/share/pyshared/django' for every project I am working on I tend to have 'PYTHONPATH' set up so I use this pattern:
#