Commit c9e42c7f authored by Tyler Hallada's avatar Tyler Hallada
Browse files

Moving non-admin static files out of admin dir

parent ef89db4f
......@@ -9,3 +9,4 @@ venv
build
apache
.ropeproject
website/static/admin/
from django.template import RequestContext
from website.models import Restaurant
from django.shortcuts import render_to_response
import re
......@@ -17,4 +18,5 @@ def restaurant_grid(request):
# Restaurants in lists of 4 to easily create rows in template
restRows = [restaurants[x:x + 4] for x in xrange(0, len(restaurants), 4)]
return render_to_response('restaurant_grid.html', {'restRows': restRows,
'restaurants': restaurants})
'restaurants': restaurants},
context_instance=RequestContext(request))
......@@ -2,13 +2,13 @@
{% block head %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/admin/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="/static/admin/css/style.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/bootstrap.min.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/style.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<script src="/static/admin/js/bootstrap.min.js"></script>
<link href="/static/admin/img/glyphicons-halflings.png" rel="icons">
<script src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
<link href="{{ STATIC_URL}}img/glyphicons-halflings.png" rel="icons">
<head>
{% block title %}
<title>
......
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