1. Jesper Nøhr
  2. django-piston
Issue #148 new

__doc__ always None

Álex González
created an issue

Hi!

I've testing documentation_view with default template. I can't never seen my documentation with this template.

I've read the documentation_view code and I see that you user doc to get the documentation, so I tried it with ./manage shell and this is my result:

In [3]: from api import handlers

In [4]: handlers.MatchHandler.doc Out[4]: '\n TEST\n '

Why if I can see the doc in the console, can't I retrieve it in the template with your view? Perhaps any misconfiguration?

I have "same" issue with the URI.

Sorry if it isn't a bug.

Comments (1)

  1. Álex González reporter

    I solved it!

    In the provided template you are using doc.get_doc instead doc.doc, with doc.doc it works perfectly.

    Perhaps you must upgrade the example template in the respository.

    Now I'm studying how solve the URI problem...

  2. Log in to comment