Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
130b24e8
Commit
130b24e8
authored
Dec 02, 2013
by
Jean Michel Rouly
Browse files
Added static templates.
parent
b61e7af0
Changes
6
Hide whitespace changes
Inline
Side-by-side
researchquestions/settings/urls.py
View file @
130b24e8
...
...
@@ -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
)),
)
researchquestions/templates/instructions.html
0 → 100644
View file @
130b24e8
{% extends 'layouts/base.html' %}
{% block title %}
HNRS 110
•
Instructions
{% endblock %}
{% block content %}
Hello, world.
{% endblock %}
researchquestions/templates/layouts/base.html
0 → 100644
View file @
130b24e8
<!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>
researchquestions/templates/layouts/footer.html
0 → 100644
View file @
130b24e8
<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>
researchquestions/templates/layouts/navbar.html
0 → 100644
View file @
130b24e8
researchquestions/website/views.py
View file @
130b24e8
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'
,
{
},
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment