views.py 765 Bytes
Newer Older
Daniel W Bond's avatar
Daniel W Bond committed
1
2
3
4
5
6
7
8
9
10
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

# processing functions

# page render functions

# this is where all users not signed in are redirected
#@login_required
11
12
13
def login(request):
    
    return render(request, 'login.html', {
Daniel W Bond's avatar
Daniel W Bond committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
        "courses" : courses
    },
    )

# "homepage", create a new trajectory
#@login_required
def index(request):

    return render(request, 'index.html', {

    },
    )

# search

# # # # # STATIC PAGES # # # # #

# SRCT, how to contribute information, how Advisor works
def about(request):

    return render(request, 'about.html', {

    },
    )

# def privacy(request):