summaryrefslogtreecommitdiff
path: root/stapp
diff options
context:
space:
mode:
authorParth Buch2012-07-20 11:30:31 +0530
committerParth Buch2012-07-20 11:30:31 +0530
commit8097b44789183fdcbbdfb4474b5a905c03366239 (patch)
tree13e1e77459025f1ffd984f22fbf87ea7acf69818 /stapp
parent3deec702b6edd458f72b405e2bdc83972bdf85a4 (diff)
downloadstproject-8097b44789183fdcbbdfb4474b5a905c03366239.tar.gz
stproject-8097b44789183fdcbbdfb4474b5a905c03366239.tar.bz2
stproject-8097b44789183fdcbbdfb4474b5a905c03366239.zip
Modified settings.py and base.html to work with not root urls
Diffstat (limited to 'stapp')
-rw-r--r--stapp/settings.py2
-rw-r--r--stapp/templates/base.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/stapp/settings.py b/stapp/settings.py
index 9534e14..ffcb5dc 100644
--- a/stapp/settings.py
+++ b/stapp/settings.py
@@ -51,7 +51,7 @@ STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
-STATIC_URL = '/static/'
+STATIC_URL = URL_ROOT + '/static/'
# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
diff --git a/stapp/templates/base.html b/stapp/templates/base.html
index 00e34fd..1f70617 100644
--- a/stapp/templates/base.html
+++ b/stapp/templates/base.html
@@ -21,8 +21,8 @@ padding-bottom: 40px;
padding: 9px 0;
}
</style>
- <link rel="stylesheet" href="{{ URL_ROOT }}/static/video/css/base.css" type="text/css" />
- <link rel="stylesheet" href="{{ URL_ROOT }}/static/video/css/style.css" type="text/css" />
+ <link rel="stylesheet" href="{{ STATIC_URL }}video/css/base.css" type="text/css" />
+ <link rel="stylesheet" href="{{ STATIC_URL }}video/css/style.css" type="text/css" />
{% block css %}
{% endblock %}