Monday, December 14, 2015

Re: Tool to document project urls, views, templates, etc...

http://ccbv.co.uk/ does this for django class based views. The code is on github

Might be a good starting point.

D

On 14 December 2015 at 17:49, Royendgel Silberie <royendgel@gmail.com> wrote:
The closest I know is :

python manage.py show_urls

in the django-extensions package


On Saturday, December 12, 2015 at 9:43:28 AM UTC-4, Mat Gessel wrote:
Anyone know of a tool that can analyze a project and generate a list or graph of views & related information?

I'm maintaining a medium size Django project. For each feature/change, I am finding myself creating a "map" of the relevant view names/relationships for quick reference. This includes:
  • URL pattern
  • URL pattern name
  • view class name
  • template file name
Example:
/training/, course-list, TrainingCourseList, training/trainingcourse_list.html
/training/courses/<slug>/, course-detail, TrainingCourseDetail, training/trainingcourse_detail.html
/training/courses/<slug>/purchase/, course-cart, TrainingCourseCart, training/trainingcourse_cart.html
/training/checkout/, course-checkout, TrainingCourseCheckout, training/trainingcourse_checkout.html

I'm new to Django and I like it so far, but identifying references is a bit of a nuisance. I found manage.py graph_models, but that only processes models.

I lieu of a tool, anyone have organizational practices they'd like to share?

Thanks,

-- 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ae250cf2-2fc8-41fe-857a-f64c1a8e56e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Wildman and Herring Limited, Registered Office: 52 Great Eastern Street, London, EC2A 3EP, Company no: 05766374

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPZHCY7UKT5mHEw2%2BhhZ_xDZr6SnX2VmWYVAeYAWtDS%3DZBF3xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment