Commit 041c47f1 authored by Daniel W Bond's avatar Daniel W Bond

advisor views slash urls done

parent 27ce41f7
......@@ -30,6 +30,9 @@ urlpatterns = patterns('',
# about page
url(r'^about/$', 'about', name = 'about'),
# privacy page
url(r'^privacy/$', 'privacy', name = 'privacy'),
# admin pages
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
......
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
from django.shortcuts import render
# page render functions
# this is where all users not signed in are redirected
#@login_required
def login(request):
return render(request, 'login.html', {
"courses" : courses
},
)
# "homepage", create a new trajectory
#@login_required
# homepage
def index(request):
return render(request, 'index.html', {
},
)
# this is where all users not signed in are redirected
def login(request):
return render(request, 'login.html', {
},
)
# search
# # # # # STATIC PAGES # # # # #
# SRCT, how to contribute information, how Advisor works
def about(request):
return render(request, 'about.html', {
},
)
# def privacy(request):
# privacy policy
def privacy(request):
return render(request, 'privacy.html', {
},
)
{% extends 'layouts/base.html' %}
{% block title %}
GMU Advisor | Privacy
{% endblock %}
{% block content %}
{% endblock %}
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