Re: [Django] #12161: Error in code example - Generic views (regular expression)

2010-01-10 Thread Django
#12161: Error in code example - Generic views (regular expression)
+---
  Reporter:  infopams   | Owner:  nobody

Status:  closed | Milestone:

 Component:  Documentation  |   Version:  1.1   

Resolution:  fixed  |  Keywords:  regular-expression 
documentation generic-views
 Stage:  Ready for checkin  | Has_patch:  1 

Needs_docs:  0  |   Needs_tests:  0 

Needs_better_patch:  0  |  
+---
Comment (by msaelices):

 I think second changed line is a raw string, and don't must to be escaped

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




Re: [Django] #12161: Error in code example - Generic views (regular expression)

2009-11-04 Thread Django
#12161: Error in code example - Generic views (regular expression)
+---
  Reporter:  infopams   | Owner:  nobody

Status:  new| Milestone:

 Component:  Documentation  |   Version:  1.1   

Resolution: |  Keywords:  regular-expression 
documentation generic-views
 Stage:  Ready for checkin  | Has_patch:  1 

Needs_docs:  0  |   Needs_tests:  0 

Needs_better_patch:  0  |  
+---
Changes (by timo):

  * has_patch:  0 => 1
  * stage:  Accepted => Ready for checkin

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #12161: Error in code example - Generic views (regular expression)

2009-11-04 Thread Django
#12161: Error in code example - Generic views (regular expression)
+---
  Reporter:  infopams   | Owner:  nobody

Status:  new| Milestone:

 Component:  Documentation  |   Version:  1.1   

Resolution: |  Keywords:  regular-expression 
documentation generic-views
 Stage:  Accepted   | Has_patch:  0 

Needs_docs:  0  |   Needs_tests:  0 

Needs_better_patch:  0  |  
+---
Changes (by mattmcc):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * component:  Uncategorized => Documentation
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #12161: Error in code example - Generic views (regular expression)

2009-11-04 Thread Django
#12161: Error in code example - Generic views (regular expression)
+---
 Reporter:  infopams|   Owner:  
nobody
   Status:  new |   Milestone:  
  
Component:  Uncategorized   | Version:  1.1 
  
 Keywords:  regular-expression documentation generic-views  |   Stage:  
Unreviewed
Has_patch:  0   |  
+---
 (at this page: http://docs.djangoproject.com/en/dev/topics/generic-views/)

 This code example is nonfuctional:

 {{{
 from django.conf.urls.defaults import *
 from django.views.generic.simple import direct_to_template
 from mysite.books.views import about_pages

 urlpatterns = patterns('',
 ('^about/$', direct_to_template, {
 'template': 'about.html'
 }),
 ('^about/(w+)/$', about_pages),
 )

 }}}

 It should be like this:

 {{{
 from django.conf.urls.defaults import *
 from django.views.generic.simple import direct_to_template
 from mysite.books.views import about_pages

 urlpatterns = patterns('',
 ('^about/$', direct_to_template, {
 'template': 'about.html'
 }),
 ('^about/(\w+)/$', about_pages),
 )

 }}}

 In short: the token (w+) should be replaced for (\w+) in order to have de
 desired functionality

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---