django-associations 0.1.7

A simple Django app to show url associations between installed apps.

What is Associations?

Associations is a small app created to help Django developers.

What does it do?

It lists urls in an app along with the names of templates, views and urls associated with it

Why was it created?

When working on a View, the common method of debugging or back tracing an issue is usually this:
  1. Look at the URL in the browser's address bar
  2. Decipher the app name from the URL
  3. Open the app project tree in your IDE (if not already open)
  4. Open the app's urls.py and locate the URL
  5. Look for the corresponding view
  6. Locate the view
  7. Locate the template name and subsequently the template itself.

Associations on the other hand lists all of them on a single page, thereby decreasing the some times frustrating trace back.

Great, but what's the catch?

The catch is that right now it's shown to be compatible with Class Based Views. It may or may not work with traditional Function Based Views. Furthermore it has been tested on Django 1.4+ and Python 2.7.x. There are plans to support Python 3. Django 1.3 won't be supported due to change in URL structures.

Like to help out?

You can find the Github repository here:

https://github.com/DarkSector/django-associations

Log issues or start developing. The documentation is currently being written.

Requirements

Currently works with Django 1.4 above and Python 2.7.x. Currently the docs and tests are being written and aren't complete

Quick start

  1. Add "associations" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'associations',
    )
    
  2. Include the BASE_DIR in your project settings like this:

    BASE_DIR = os.path.dirname(os.path.dirname(__file__))
    

    If the 'BASE_DIR' is defined as some other variable, define BASE_DIR = <variable name>

  1. Include the Associations URLconf in your project urls.py like this:

    url(r'^associations/', include('associations.urls')),
    
  2. Start the development server and visit http://127.0.0.1:8000/associations/ and you're ready to go.

MIT License

Author

Pronoy Chopra

Pip

django-associations==0.1.7

Classifiers

  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Topic :: Internet :: WWW/HTTP
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: MIT License
  • Intended Audience :: Science/Research
  • Intended Audience :: Information Technology
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 2 - Pre-Alpha
File Type Python Version Uploaded On Downloads
django-associations-0.1.7.zip Source March 9, 2014 848
django-associations-0.1.7.tar.gz Source March 9, 2014 902
Version Release Date
0.1.7 March 9, 2014
0.1.6 Jan. 17, 2014
0.1.5 Jan. 13, 2014
0.1.4 Jan. 13, 2014
0.1.3 Jan. 13, 2014
0.1 Jan. 13, 2014
Date Package Version Action
Nov. 4, 2014, 12:51 p.m. django-associations 0.1.7 Release Created
Nov. 4, 2014, 12:51 p.m. django-associations 0.1.6 Release Created
Nov. 4, 2014, 12:51 p.m. django-associations 0.1.5 Release Created
Nov. 4, 2014, 12:51 p.m. django-associations 0.1.4 Release Created
Nov. 4, 2014, 12:51 p.m. django-associations 0.1.3 Release Created
Nov. 4, 2014, 12:51 p.m. django-associations 0.1 Release Created
Nov. 4, 2014, 12:51 p.m. django-associations Package Created