Thursday, April 30, 2015

Re: How to find a view in a complex web application



Am Dienstag, 28. April 2015 16:49:18 UTC+2 schrieb Andrew Farrell:
If you are asking this question as a developer who wants to know what view to use to affect a page when you know the url, I recommend you install The Silver Searcher, which lets you run 

$ ag 'some arbitrary text you might find on a page'

and it will quickly show you every place that text occurs in the entire directory tree where you run the command. This will show you what template is being rendered. Then, you can take the name of that template and do something like.

$ ag 'orders/unfulfilled.html'

and you will see which view is rendering that template.



No, I was looking at my pages through the glasses of a user.

For search in code I use pyCharm.

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bd57cc98-e613-4c24-bc93-72faf32d3124%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment