An open API service indexing awesome lists of open source software.

https://github.com/fitzgen/django-query-analyzer

Analyzer of django query
https://github.com/fitzgen/django-query-analyzer

Last synced: over 1 year ago
JSON representation

Analyzer of django query

Awesome Lists containing this project

README

          

Django-Query-Analyzer
=====================

This is the start of the django query analyzer project, a way to introspect the
django ORM.

Installation:
-------------

Required: Django 1.2

$ git clone git://github.com/andymckay/django-query-analyzer.git
$ cd /path/to/your/django/project
$ ln -s /path/to/django-query-analyzer/query_analyzer query_analyzer

add "query_analyzer" to your installed_apps in settings.py
include query_analyzer.urls in your project's urls. eg:

(r'^query/', include("query_analyzer.urls")),

then go to:

http://your.django.site/query/basic/

Misc. Installation Notes
------------------------

The admin application must be enabled the "new" way in urls.py. Use this style:

# ...
(r'^admin/', include(admin.site.urls)),
# ...

and NOT this old way:

# ...
("(r'^admin/(.*)', admin.site.root),")
# ...