Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nathan R Lapierre
advisor
Commits
2468f0b0
Commit
2468f0b0
authored
Dec 30, 2013
by
Daniel W Bond
Browse files
added trajectory page url and view
parent
67ea9f3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
advisor/settings/urls.py
View file @
2468f0b0
...
...
@@ -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'
),
...
...
advisor/trajectories/views.py
View file @
2468f0b0
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment