|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
[Django] #12161: Error in code example - Generic views (regular expression)
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #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: <http://code.djangoproject.com/ticket/12161> Django <http://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 post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... 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)
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #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: <http://code.djangoproject.com/ticket/12161#comment:1> Django <http://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 post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... 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)
by noreply-71
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #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: <http://code.djangoproject.com/ticket/12161#comment:2> Django <http://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 post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |