Just out of interest: Does anyone know how the core of the django
automatic documentation works (link to a tutorial)?
thx for the help
Stephane
It's generated from the docstrings, so if you're following good Python
practice of writing docstrings in your code you'll see them show up in
the admin as documentation.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
...Except that attributes are lost when functions are decorated. :)
What a handy example for the patch here:
http://code.djangoproject.com/ticket/5701
:)
N.B. There is some doubt that the included patch will be included in
Django due to provenance issues with the copied functools code. There
is a current thread on django-dev regarding this.
archive of thread:
http://groups.google.com/group/django-developers/browse_thread/thread/885ed68f98f8258d
I read somewhere, that django automatically creates the documentation
for the variables passed to a template. Is there some function i have
to activate or is this not possible?
Django doesn't automatically generate _any_ documentation. All it does
is show what's in the docstrings, so your docstring should list the
variables and what they are.