from django.conf.urls.defaults import patterns, url


urlpatterns = patterns('snakeplan.projects.views',
    (r'^$', 'projects.index'),
    (r'^story/(.*)/', 'stories.index'),
    (r'^iteration/(.*)/', 'iterations.index'),
    (r'^create/', 'projects.create_project'),
    url(r'^(.*)/', 'projects.project_iterations', name='project_iterations'),
)

from django.conf.urls.defaults import patterns, url


urlpatterns = patterns('snakeplan.projects.views',
    (r'^$', 'projects.index'),
    (r'^story/(.*)/', 'stories.index'),
    (r'^iteration/(.*)/', 'iterations.index'),
    (r'^create/', 'projects.create_project'),
    (r'^(.*)/iterations', 'projects.project_iterations'),
    url(r'^(.*)/', 'projects.project_iterations', name='project_iterations'),
)

Add /project/<id>/iterations route for the hell of it(I think it makes more sense)
Add /project/<id>/iterations route for the hell of it(I think it makes more sense)

  from django.conf.urls.defaults import patterns, url
  
  
  urlpatterns = patterns('snakeplan.projects.views',
      (r'^$', 'projects.index'),
      (r'^story/(.*)/', 'stories.index'),
      (r'^iteration/(.*)/', 'iterations.index'),
      (r'^create/', 'projects.create_project'),
+     (r'^(.*)/iterations', 'projects.project_iterations'),
      url(r'^(.*)/', 'projects.project_iterations', name='project_iterations'),
  )
  
Add /project/<id>/iterations route for the hell of it(I think it makes more sense)
## Code Before:
from django.conf.urls.defaults import patterns, url


urlpatterns = patterns('snakeplan.projects.views',
    (r'^$', 'projects.index'),
    (r'^story/(.*)/', 'stories.index'),
    (r'^iteration/(.*)/', 'iterations.index'),
    (r'^create/', 'projects.create_project'),
    url(r'^(.*)/', 'projects.project_iterations', name='project_iterations'),
)

## Instruction:
Add /project/<id>/iterations route for the hell of it(I think it makes more sense)
## Code After:
from django.conf.urls.defaults import patterns, url


urlpatterns = patterns('snakeplan.projects.views',
    (r'^$', 'projects.index'),
    (r'^story/(.*)/', 'stories.index'),
    (r'^iteration/(.*)/', 'iterations.index'),
    (r'^create/', 'projects.create_project'),
    (r'^(.*)/iterations', 'projects.project_iterations'),
    url(r'^(.*)/', 'projects.project_iterations', name='project_iterations'),
)
