views.py 622 Bytes
Newer Older
Daniel W Bond's avatar
Daniel W Bond committed
1
2
3
from django.shortcuts import render, render_to_response, get_object_or_404
from trajectories.models import Course, CourseCollection, Program, Student, Trajectory
from django.db.models import Max
Daniel W Bond's avatar
Daniel W Bond committed
4

Daniel W Bond's avatar
Daniel W Bond committed
5
6
# processing functions

7
# def analyzeEverything():
Daniel W Bond's avatar
Daniel W Bond committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

# page render functions

# compares saved trajectories
#@login_required
# def compare(request, slug):
def compare(request):

    # this is gonna be hella slow; I need to learn how ajax works and what
    # it will actually need
    
    trajectories = Trajectory.objects.all()
    return render(request, 'compare.html', {
        'trajectories' : trajectories,
    },
    )