it says that request to a path(after the project specific url parts are stripped) starting with "pyrheology/plot/str/" followed by one or more digits followed by ".png" (example: pyrheology/plot/str/123.png) will be handled by the view 'pyrheology.views.str_tmc_plot_img' and the number(in the example, 123) will b passed to that view as a keyword parameter called `str_tmc_id`. The last part (name=...) is the name of the url pattern itself.
On Wed, Jun 6, 2012 at 4:02 PM, Satvir Toor <[email protected]> wrote: > I installed a application source code downloaded from Internet . > Please explain me the following code that exists in urls.py file of > the project. > url(r'^pyrheology/plot/str/(?P<str_tmc_id>\d+).png$',\ > 'pyrheology.views.str_tmc_plot_img',\ > name='pyrheology-str-tmc-plot-img'), > > -- > Satvir Kaur > satveerkaur.blogspot.in > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Yati Sagade <http://twitter.com/yati_itay> Twitter: @yati_itay <http://twitter.com/yati_itay> Organizing member of TEDx EasternMetropolitanBypass http://www.ted.com/tedx/events/4933 https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

