Source

django-pim / projects / urls.py

Full commit
Kevin Veroneau fffb63b 





















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

goal_urls = patterns('projects.views',
    url(r'^view_goal.py$', 'view_goal', name='projects-view-goal'),
    url(r'^new_note.py$', 'new_note', name='projects-create-goal-note'),
    url(r'^(?P<note_slug>[\w-]+).txt$', 'view_note', name='projects-view-goal-note'),
)

project_urls = patterns('projects.views',
    url(r'^view_project.py$', 'view_project', name='projects-view'),
    url(r'^new_goal.py$', 'new_goal', name='projects-create-goal'),
    url(r'^new_note.py$', 'new_note', name='projects-create-note'),
    url(r'^(?P<note_slug>[\w-]+).txt$', 'view_note', name='projects-view-note'),
    (r'^(?P<goal_slug>[\w-]+)/', include(goal_urls)),
)

urlpatterns = patterns('projects.views',
    url(r'^$', 'index', name='projects-home'),
    url(r'^4b4332f30c8eb8549a8d88d9e5745ae2/todos.ics$', 'ical', name='projects-ical'),
    url(r'^new_project.py$', 'new_project', name='projects-create'),
    url(r'^complete.py$', 'complete_projects', name='projects-complete'),
    (r'^(?P<prj_slug>[\w-]+)/', include(project_urls)),
)