Extract information from django templates
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits behind ricobl:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dummy_app1
dummy_app2
dummy_app3
tip
.gitignore
Makefile
README.md
__init__.py
manage.py
nose_runner.py
settings.py
setup.py
urls.py

README.md

Django Template Inspector (tip) 0.0.1

Inspector for Django Templates

Dependencies

  1. django 1.1+

Installing

  1. Install the python module in your system:

    pip install django-tip

  2. Add tip to the INSTALLED_APPS list on your settings (eg: settings.py) file:

     INSTALLED_APPS = (
         'django.contrib.auth',
         'django.contrib.admin',
         'django.contrib.contenttypes',
         'django.contrib.sessions',
         'django.contrib.sites',
         ...
         'tip',
     )
    

Release Plan

  • Release 1
    • List all paths defined in TEMPLATE_DIRS and all installed apps template dirs.
  • Release 2
    • Template listing
    • Template inclusion
  • Release 3
    • Template inheritance (ordered)
  • Release 4
    • Template overrides
    • Template Blocks
  • Release 5
    • Template Blocks orphans
    • Template Blocks overrides
  • Release 6
    • Template Block search
    • Template variables search
  • Release 7
    • Web Display of Template information

Planned Features

  1. Template path listing

    • List all paths defined in TEMPLATE_DIRS and all installed apps template dirs. dirs List template paths
  2. Template structure information

    • Template listing - list option
    • Template inclusion
    • Template inheritance (ordered)
    • Template overrides
    • Template Blocks
    • Template Blocks orphans
    • Template Blocks overrides
    • Template Block search
    • Template variables search
  3. Web Display of Template information

  4. Template refactoring suggestion