Commit ff61557f authored by Daniel W Bond's avatar Daniel W Bond

added some django basics

parent 5926ae86
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
from import execute_from_command_line
Django settings for home project.
For more information on this file, see
For the full list of settings and their values, see
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '_96c^=%d@vet%phpet+(o#-+re9y#tx)tni3n+4^#aj1l-6feg'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Application definition
ROOT_URLCONF = 'settings.urls'
WSGI_APPLICATION = 'settings.wsgi.application'
# Database
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# Internationalization
TIME_ZONE = 'America/New_York'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
body {
text-align: center;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
height: 100%;
.container {
margin: auto;
h1 {
font-family: "Helvetica Neue", "Helvetica", sans-serif;
margin-top: ;
#squirrels {
width: 100%;
#acorn {
width: 52px;
position: fixed;
bottom: 10px;
right: 10px;
<div class="container">
<h1>404 Error - Page Not Found</h1>
<img id="squirrels" src="/static/img/squirrels.png">
<a href="/"><img id="acorn" src="/static/img/acorn.png"></a>
<html lang="en">
{% load staticfiles %}
<link href="/static/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/static/css/style.css" rel="stylesheet" media="screen">
<script src="/static/js/jquery-1.10.2.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<link rel="icon" href="/static/img/favicon.ico">
<meta charset="utf-8">
<meta name="description" content="Advisor is a dynamic web application that lets users create, compare, and save course trajectories towards graduation. Not intended as a replacement for formal academic advising. A project of GMU SRCT.">
<!-- <link rel="icon" href="path/to/favicon/"> -->
{% block title %}
{% endblock %}
<div id = "wrap">
{% include 'layouts/navbar.html' %}
{% block pagetitle %}
{% endblock %}
<div class="container">
{% block content %}
{% endblock %}
{% include 'layouts/footer.html' %}
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
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