from django.conf.urls import patterns, include, url
from models import Page

urlpatterns = patterns('kcdc3.apps.pinata.views',

	url(r'^$', 'page_view'),
	url(r'^[0-9a-zA-Z_-]+/$', 'page_view'),

)

from django.conf.urls import patterns, include, url
from models import Page

urlpatterns = patterns('kcdc3.apps.pinata.views',

	url(r'^$', 'page_view'),
	url(r'^[0-9a-zA-Z_-]+/$', 'page_view'),
	url(r'^[0-9a-zA-Z_-]+/[0-9a-zA-Z_-]+/$', 'page_view'),
	# Surely there's a better way to handle paths that contain several slashes

)

Allow three-deep paths in Pinata
Allow three-deep paths in Pinata

  from django.conf.urls import patterns, include, url
  from models import Page
  
  urlpatterns = patterns('kcdc3.apps.pinata.views',
  
  	url(r'^$', 'page_view'),
  	url(r'^[0-9a-zA-Z_-]+/$', 'page_view'),
+ 	url(r'^[0-9a-zA-Z_-]+/[0-9a-zA-Z_-]+/$', 'page_view'),
+ 	# Surely there's a better way to handle paths that contain several slashes
  
  )
  
Allow three-deep paths in Pinata
## Code Before:
from django.conf.urls import patterns, include, url
from models import Page

urlpatterns = patterns('kcdc3.apps.pinata.views',

	url(r'^$', 'page_view'),
	url(r'^[0-9a-zA-Z_-]+/$', 'page_view'),

)

## Instruction:
Allow three-deep paths in Pinata
## Code After:
from django.conf.urls import patterns, include, url
from models import Page

urlpatterns = patterns('kcdc3.apps.pinata.views',

	url(r'^$', 'page_view'),
	url(r'^[0-9a-zA-Z_-]+/$', 'page_view'),
	url(r'^[0-9a-zA-Z_-]+/[0-9a-zA-Z_-]+/$', 'page_view'),
	# Surely there's a better way to handle paths that contain several slashes

)
