#21023: Your documentation is poor at best.
-------------------------------------+-------------------------------------
     Reporter:  lam2015@…            |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:  1.5
    Component:  Documentation        |               Resolution:  invalid
     Severity:  Normal               |             Triage Stage:
     Keywords:  URL                  |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by ramiro:

Old description:

> Here is how you do it:
>
> URLS:
>
> from django.conf.urls import patterns, url
>
> urlpatterns = patterns('',
>     url(r'^articles/(\d{4})/$', 'news.views.year_archive'),
>     url(r'^articles/(\d{4})/(\d{2})/$', 'news.views.month_archive'),
>     url(r'^articles/(\d{4})/(\d{2})/(\d+)/$',
> 'news.views.article_detail'),
> )
>
> You go line by line and say r = raw. This means no escape characters, the
> compiler processes what it sees.
> Next: ^ from Regular expressions means the beginning of the line
> beginning with the word articles?
> The slash is:
> Then you put parenthesis because?: GET IT?
> then there is another slash
>
> AND SO ON!!!! ONE STEP at a time
>
> THIS IS HOW YOU EXPLAIN THINGS. Make believe the person reading it doesnt
> know anything about Regular expressions. These are not standard Regex..
> not like Perl

New description:

 Here is how you do it:

 URLS:
 {{{
 from django.conf.urls import patterns, url

 urlpatterns = patterns('',
     url(r'^articles/(\d{4})/$', 'news.views.year_archive'),
     url(r'^articles/(\d{4})/(\d{2})/$', 'news.views.month_archive'),
     url(r'^articles/(\d{4})/(\d{2})/(\d+)/$',
 'news.views.article_detail'),
 )
 }}}
 You go line by line and say r = raw. This means no escape characters, the
 compiler processes what it sees.
 Next: `^` from Regular expressions means the beginning of the line
 beginning with the word articles?
 The slash is:
 Then you put parenthesis because?: GET IT?
 then there is another slash

 AND SO ON!!!! ONE STEP at a time

 THIS IS HOW YOU EXPLAIN THINGS. Make believe the person reading it doesnt
 know anything about Regular expressions. These are not standard Regex..
 not like Perl

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21023#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/078.ad802e8530d92dc27ddcbecd74785622%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to