[extensions-web] Use staticfiles for serving static media
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Use staticfiles for serving static media
- Date: Mon, 20 May 2013 20:34:25 +0000 (UTC)
commit babb1421964da633181a84c7da51db689bcc52c2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon May 20 16:10:43 2013 -0400
Use staticfiles for serving static media
sweettooth/settings.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 5d56054..3bc387d 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -62,6 +62,10 @@ STATIC_ROOT = ''
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'
+STATICFILES_DIRS = (
+ os.path.join(SITE_ROOT, 'static'),
+)
+
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'tv(d+lom-sa^de5i#ab)(g^3249tbzssizuvh8m9_lwppdn1bw'
@@ -117,6 +121,7 @@ INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
+ 'django.contrib.staticfiles',
'django.contrib.messages',
'extensions',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]