
from django.conf.urls.defaults import *

patterns = patterns('eforge.wiki.views',
    url(r'^(?P<name>[a-zA-Z_/ ]+)$', 'wiki_page', name='wiki-page'),
    url(r'^$',                       'wiki_page', name='wiki-home'),
)

from django.conf.urls.defaults import *

patterns = patterns('eforge.wiki.views',
    url(r'^(?P<name>[\w]+)$',  'wiki_page', name='wiki-page'),
    url(r'^$',                 'wiki_page', name='wiki-home'),
)
Update wiki to be a little more flexible with naming
Update wiki to be a little more flexible with naming

  
  from django.conf.urls.defaults import *
  
  patterns = patterns('eforge.wiki.views',
-     url(r'^(?P<name>[a-zA-Z_/ ]+)$', 'wiki_page', name='wiki-page'),
+     url(r'^(?P<name>[\w]+)$',  'wiki_page', name='wiki-page'),
-     url(r'^$',                       'wiki_page', name='wiki-home'),
+     url(r'^$',                 'wiki_page', name='wiki-home'),
  )
Update wiki to be a little more flexible with naming
## Code Before:

from django.conf.urls.defaults import *

patterns = patterns('eforge.wiki.views',
    url(r'^(?P<name>[a-zA-Z_/ ]+)$', 'wiki_page', name='wiki-page'),
    url(r'^$',                       'wiki_page', name='wiki-home'),
)
## Instruction:
Update wiki to be a little more flexible with naming
## Code After:

from django.conf.urls.defaults import *

patterns = patterns('eforge.wiki.views',
    url(r'^(?P<name>[\w]+)$',  'wiki_page', name='wiki-page'),
    url(r'^$',                 'wiki_page', name='wiki-home'),
)