Commit 130b24e8 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added static templates.

parent b61e7af0
......@@ -5,9 +5,10 @@ from django.contrib import auth
admin.autodiscover()
urlpatterns = patterns('website.views',
# Examples:
# url(r'^$', 'settings.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
#### STATIC PAGES ####
url(r'^instructions$', 'instructions', name='instructions'),
url(r'^submit$', 'submit_question', name='submit_question'),
url(r'^admin/', include(admin.site.urls)),
)
{% extends 'layouts/base.html' %}
{% block title %}
HNRS 110 • Instructions
{% endblock %}
{% block content %}
Hello, world.
{% endblock %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
{% load staticfiles %}
<link href="/static/css/styles.css" rel="stylesheet">
<script src="/static/js/jquery-1.10.2.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<title>{% block title %}{% endblock %}</title>
</head>
<body>
{% include 'layouts/navbar.html' %}
{% block pagetitle %}
{% endblock %}
{% block content %}
{% endblock %}
{% include 'layouts/footer.html' %}
</body>
</html>
<div class="footer">
By <a href="http://michel.rouly.net">Michel Rouly</a> |
For <a href="http://gmu.edu">George Mason University</a> |
With <a href="http://www.apache.org/licenses/LICENSE-2.0">some rights reserved</a>
</div>
from website.models import Question, Comment, Reply, User
from django.conf import settings
from django.shortcuts import render_to_response, get_object_or_404
from django.shortcuts import render
import requests
# Create your views here.
def instructions(request):
return render_to_response('instructions.html', {
},
)
def submit_question(request):
return render_to_response('submit_question.html', {
},
)
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