Skip to content

Commit

Permalink
Switch to using MEDIA_URL for static files.
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmt committed Aug 15, 2010
1 parent fe9829a commit b7383d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion settings.py
Expand Up @@ -41,7 +41,7 @@
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''
MEDIA_URL = '/static/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
Expand Down
10 changes: 5 additions & 5 deletions templates/base.html
Expand Up @@ -3,11 +3,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{% block title %}Minerva{% endblock %}</title>
<link rel="stylesheet" href="/static/css/style.layout.css" type="text/css" media="screen, projection" />
<link type="text/css" href="/static/css/smoothness/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript" src="/static/js/login.js"></script>
<link rel="stylesheet" href="{{MEDIA_URL}}css/style.layout.css" type="text/css" media="screen, projection" />
<link type="text/css" href="{{MEDIA_URL}}css/smoothness/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
<script type="text/javascript" src="{{MEDIA_URL}}js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/login.js"></script>
</head>

<body>
Expand Down

0 comments on commit b7383d6

Please sign in to comment.