Commit 2468f0b0 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added trajectory page url and view

parent 67ea9f3f
......@@ -31,6 +31,9 @@ urlpatterns = patterns('trajectories.views',
# student's page
url(r'^user/(?P<username>\w+)/$', 'student', name = 'student'),
# single trajectory page
url(r'^user/(?P<username>\w+)/(?P<trajectoryslug>\w+)$', 'trajectory', name = 'trajectory'),
# creating the trajectory
# url(r'^user/(?P<username>\w+)/create/$', 'create', name = 'create'),
url(r'^create/$', 'create', name = 'create'),
......
......@@ -152,6 +152,14 @@ def course(request, slug):
},
)
def trajectory(request, slug):
# actually needs more than one slug
return render(request, 'trajectory.html', {
},
)
# student's page; shows saved trajectories
#@login_required
def student(request, slug):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment